class Bosta::ContactPerson

Represents the contact person type that used by bosta apis

Attributes

email[RW]
name[RW]
phone[RW]

Public Class Methods

new(name, phone, email = nil) click to toggle source

Initialize Contact Person Object

* +name+
* +phone+
* +email+ (optional) String
Calls superclass method
# File lib/bosta/utils/contact_person.rb, line 13
def initialize(name, phone, email = nil)
  super()
  @name = name
  @phone = phone
  @email = email

  check_required_fields('name', 'phone')
end