Class: Realogy::Company
- Inherits:
-
Entity
- Object
- ActiveRecord::Base
- ApplicationRecord
- Entity
- Realogy::Company
- Defined in:
- lib/realogy/app/models/realogy/company.rb
Instance Method Summary collapse
-
#addl_language_names ⇒ Object
addlLanguageNames : [Hash] A collection of Company names in other languages (non-English).
-
#addl_websites ⇒ Object
addlWebSites : [Hash] A collection of websites associated with the Company.
-
#brand_code ⇒ Object
brandCode : String The brand that the Company is associated with.
-
#can_do_commercial_business? ⇒ Boolean
canDoCommercialBusiness : Boolean Will be ‘true’ if this company can do commercial business.
-
#commercial_company_name ⇒ Object
commercialCompanyName : String commercialCompanyName of the company.
-
#company_id ⇒ Object
id : String Globally unique identifier assigned to a Company by Realogy.
-
#company_summary ⇒ Object
companySummary : Hash.
-
#is_nrt? ⇒ Boolean
isNrt : Boolean This indicates whether it is Nrt Type or not.
-
#last_updated ⇒ Object
lastUpdateOn : DateTime The date/time that the Company record was last updated in the system (UTC).
-
#media ⇒ Object
media : [Hash].
-
#name ⇒ Object
name : String Name of the Company.
-
#programs ⇒ Object
programs ; [Hash].
-
#rfg_id ⇒ Object
RFGID : String Business identifier assigned to a Company by Realogy.
-
#website_url ⇒ Object
websiteURL : String URL to the Company’s website.
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_names ⇒ Object
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_websites ⇒ Object
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_code ⇒ Object
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
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_name ⇒ Object
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_id ⇒ Object
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_summary ⇒ Object
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
54 55 56 |
# File 'lib/realogy/app/models/realogy/company.rb', line 54 def is_nrt? self.dig_for_boolean("companySummary", "isNrt") end |
#last_updated ⇒ Object
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 |
#media ⇒ Object
media : [Hash]
67 68 69 |
# File 'lib/realogy/app/models/realogy/company.rb', line 67 def media self.dig_for_array("media") end |
#name ⇒ Object
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 |
#programs ⇒ Object
programs ; [Hash]
80 81 82 |
# File 'lib/realogy/app/models/realogy/company.rb', line 80 def programs self.dig_for_array("programs") end |
#rfg_id ⇒ Object
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_url ⇒ Object
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 |