Class: Realogy::Company

Inherits:
Entity show all
Defined in:
lib/realogy/app/models/realogy/company.rb

Instance Method Summary collapse

Methods inherited from Entity

#dig_for_array, #dig_for_boolean, #dig_for_datetime, #dig_for_decimal, #dig_for_hash, #dig_for_integer, #dig_for_string, #needs_updating?, #populate, triage

Instance Method Details

#addl_language_namesObject

addlLanguageNames : [Hash] A collection of Company names in other languages (non-English)



6
7
8
# File 'lib/realogy/app/models/realogy/company.rb', line 6

def addl_language_names
  self.dig_for_array("addlLanguageNames")
end

#addl_websitesObject

addlWebSites : [Hash] A collection of websites associated with the Company



13
14
15
# File 'lib/realogy/app/models/realogy/company.rb', line 13

def addl_websites
  self.dig_for_array("addlWebSites")
end

#brand_codeObject

brandCode : String The brand that the Company is associated with



20
21
22
# File 'lib/realogy/app/models/realogy/company.rb', line 20

def brand_code
  self.dig_for_string("companySummary", "brandCode")
end

#can_do_commercial_business?Boolean

canDoCommercialBusiness : Boolean Will be ‘true’ if this company can do commercial business

Returns:

  • (Boolean)


27
28
29
# File 'lib/realogy/app/models/realogy/company.rb', line 27

def can_do_commercial_business?
  self.dig_for_boolean("companySummary", "canDoCommercialBusiness")
end

#commercial_company_nameObject

commercialCompanyName : String commercialCompanyName of the company



34
35
36
# File 'lib/realogy/app/models/realogy/company.rb', line 34

def commercial_company_name
  self.dig_for_string("companySummary", "commercialCompanyName")
end

#company_idObject

id : String Globally unique identifier assigned to a Company by Realogy



41
42
43
# File 'lib/realogy/app/models/realogy/company.rb', line 41

def company_id
  self.dig_for_string("companySummary", "id")
end

#company_summaryObject

companySummary : Hash



47
48
49
# File 'lib/realogy/app/models/realogy/company.rb', line 47

def company_summary
  self.dig_for_hash("companySummary")
end

#is_nrt?Boolean

isNrt : Boolean This indicates whether it is Nrt Type or not

Returns:

  • (Boolean)


54
55
56
# File 'lib/realogy/app/models/realogy/company.rb', line 54

def is_nrt?
  self.dig_for_boolean("companySummary", "isNrt")
end

#last_updatedObject

lastUpdateOn : DateTime The date/time that the Company record was last updated in the system (UTC)



61
62
63
# File 'lib/realogy/app/models/realogy/company.rb', line 61

def last_updated
  self.dig_for_datetime("companySummary", "lastUpdateOn")
end

#mediaObject

media : [Hash]



67
68
69
# File 'lib/realogy/app/models/realogy/company.rb', line 67

def media
  self.dig_for_array("media")
end

#nameObject

name : String Name of the Company



74
75
76
# File 'lib/realogy/app/models/realogy/company.rb', line 74

def name
  self.dig_for_string("companySummary", "name")
end

#programsObject

programs ; [Hash]



80
81
82
# File 'lib/realogy/app/models/realogy/company.rb', line 80

def programs
  self.dig_for_array("programs")
end

#rfg_idObject

RFGID : String Business identifier assigned to a Company by Realogy



87
88
89
# File 'lib/realogy/app/models/realogy/company.rb', line 87

def rfg_id
  self.dig_for_string("companySummary", "RFGID")
end

#website_urlObject

websiteURL : String URL to the Company’s website



94
95
96
# File 'lib/realogy/app/models/realogy/company.rb', line 94

def website_url
  self.dig_for_string("companySummary", "websiteURL")
end