Class: Lushao::Person

Inherits:
Object
  • Object
show all
Defined in:
lib/lushao/person.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(company_or_domain, first_name, last_name, flag_company_or_domain, key, property) ⇒ Person

Returns a new instance of Person.



10
11
12
13
14
15
16
17
# File 'lib/lushao/person.rb', line 10

def initialize(company_or_domain, first_name, last_name,flag_company_or_domain, key,property)
  @company_or_domain = company_or_domain
  @first_name = first_name
  @last_name = last_name
  @flag_company_or_domain=flag_company_or_domain
  @key = key
  @property = property
end

Instance Attribute Details

#emailAddressesObject (readonly)

Returns the value of attribute emailAddresses.



8
9
10
# File 'lib/lushao/person.rb', line 8

def emailAddresses
  @emailAddresses
end

#phoneNumbersObject (readonly)

Returns the value of attribute phoneNumbers.



8
9
10
# File 'lib/lushao/person.rb', line 8

def phoneNumbers
  @phoneNumbers
end

Instance Method Details

#get_resultsObject



19
20
21
22
# File 'lib/lushao/person.rb', line 19

def get_results
  response = apiresponse
  Struct.new(*response.keys).new(*response.values) unless response.empty?
end