Class: Realogy::Office
- Inherits:
-
Entity
- Object
- ActiveRecord::Base
- ApplicationRecord
- Entity
- Realogy::Office
- Defined in:
- lib/realogy/app/models/realogy/office.rb
Instance Method Summary collapse
-
#addl_language_names ⇒ Object
addlLanguageNames : [Hash] A collection of office names in other languages (non-English)“,.
-
#addl_phone_numbers ⇒ Object
addlPhoneNumbers : [Hash] Array of additional phone numbers associated with the office.
-
#addl_websites ⇒ Object
addlWebSites : [Hash] A collection of websites associated with the Office.
-
#area_served ⇒ Object
areaServed : [Hash] Collection of areas served by the office.
-
#brand_code ⇒ Object
brandCode : String The Franchise that the Office is part of.
-
#broker_name ⇒ Object
brokerName : String Name of the Broker of the Office.
-
#city ⇒ Object
city : String City.
-
#company_id ⇒ Object
companyId : String Globally unique identifier assigned to a company by Realogy“.
-
#company_name ⇒ Object
companyName : String Name of the Company.
-
#country ⇒ Object
country : String Country.
-
#country_code ⇒ Object
countryCode : String ISO Code of the country.
-
#default_photo_url ⇒ Object
defaultPhotoURL : String URL for the default photo associated with the Office.
-
#district ⇒ Object
district : String Subdivision name in the country or region for the address.
-
#email_address ⇒ Object
emailAddress : String description“: ”Main contact email address for the office.
-
#entity_preference ⇒ Object
entityPreference : [Hash] Array of entityPreference associated with the office.
-
#fax_number ⇒ Object
faxNumber : String Fax number for the office.
-
#formatted_address ⇒ Object
formattedAddress : String Formatted address for display purpose.
-
#geographic_regions ⇒ Object
geographicRegions : Array A collection of geographic regions associated with the Office location.
-
#languages_spoken ⇒ Object
languagesSpoken : Array A collection of languages spoken by Agents that work out of the office.
-
#last_updated ⇒ Object
lastUpdateOn : DateTime The date/time that the Office record was last updated in the system (UTC).
-
#latitude ⇒ Object
latitude : Decimal Latitude of a location.
-
#lead_email_address ⇒ Object
leadEmailAddress : String Email address to send any leads generated for the Office.
-
#longitude ⇒ Object
longitude : Decimal Longitude of a location.
-
#media ⇒ Object
media : [Hash].
-
#mls_information ⇒ Object
mlsInformation : Array A collection of MLS numbers associated with an Office.
-
#name ⇒ Object
name : String Name of the office.
-
#office_address ⇒ Object
officeAddress : Hash.
-
#office_id ⇒ Object
officeId : String Globally unique identifier assigned to an office by Realogy.
-
#office_manager_name ⇒ Object
officeManagerName : String Name of the Office Manager.
-
#office_summary ⇒ Object
officeSummary.
-
#office_type ⇒ Object
type : String Type of office (Main, Branch, etc.).
-
#phone_number ⇒ Object
phoneNumber : String Main contact phone number for the office.
-
#postal_code ⇒ Object
postalCode : String ZIP/Postal code“.
-
#recruiting_email_address ⇒ Object
recruitingEmailAddress : String Email address to send any recruiting-related communications for the Office.
-
#remarks ⇒ Object
remarks : [Hash] Collection of remarks for the Office.
-
#rfg_company_id ⇒ Object
RFGCompanyId : String Unique identifier assigned to a company by Realogy.
-
#rfg_office_id ⇒ Object
RFGOfficeId : String Unique identifier assigned to an office by Realogy.
-
#seasonal_close_mmdd ⇒ Object
seasonalCloseMMDD : String If a Seasonal Office, the month/day on which the Office closes in a year.
-
#seasonal_open_mmdd ⇒ Object
seasonalOpenMMDD : String If a Seasonal Office, the month/day on which the Office opens in a year.
-
#special_markets ⇒ Object
specialMarkets : Array A list of Markets that the Office specializes in.
-
#state_province ⇒ Object
stateProvince : String State/Province where the address is.
-
#state_province_code ⇒ Object
stateProvinceCode : String ISO code of the state/subdivision.
-
#street_address ⇒ Object
streetAddress : String Street address“.
-
#website_url ⇒ Object
websiteURL : String URL to the Office’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 office names in other languages (non-English)“,
6 7 8 |
# File 'lib/realogy/app/models/realogy/office.rb', line 6 def addl_language_names self.dig_for_array("addlLanguageNames") end |
#addl_phone_numbers ⇒ Object
addlPhoneNumbers : [Hash] Array of additional phone numbers associated with the office
13 14 15 |
# File 'lib/realogy/app/models/realogy/office.rb', line 13 def addl_phone_numbers self.dig_for_array("addlPhoneNumbers") end |
#addl_websites ⇒ Object
addlWebSites : [Hash] A collection of websites associated with the Office
20 21 22 |
# File 'lib/realogy/app/models/realogy/office.rb', line 20 def addl_websites self.dig_for_array("addlWebSites") end |
#area_served ⇒ Object
areaServed : [Hash] Collection of areas served by the office
27 28 29 |
# File 'lib/realogy/app/models/realogy/office.rb', line 27 def area_served self.dig_for_array("areaServed") end |
#brand_code ⇒ Object
brandCode : String The Franchise that the Office is part of
34 35 36 |
# File 'lib/realogy/app/models/realogy/office.rb', line 34 def brand_code self.dig_for_string("officeSummary", "brandCode") end |
#broker_name ⇒ Object
brokerName : String Name of the Broker of the Office
41 42 43 |
# File 'lib/realogy/app/models/realogy/office.rb', line 41 def broker_name self.dig_for_string("brokerName") end |
#city ⇒ Object
city : String City
48 49 50 |
# File 'lib/realogy/app/models/realogy/office.rb', line 48 def city self.dig_for_string("officeSummary", "officeAddress", "city") end |
#company_id ⇒ Object
companyId : String Globally unique identifier assigned to a company by Realogy“
55 56 57 |
# File 'lib/realogy/app/models/realogy/office.rb', line 55 def company_id self.dig_for_string("officeSummary", "companyId") end |
#company_name ⇒ Object
companyName : String Name of the Company
62 63 64 |
# File 'lib/realogy/app/models/realogy/office.rb', line 62 def company_name self.dig_for_string("officeSummary", "companyName") end |
#country ⇒ Object
country : String Country
69 70 71 |
# File 'lib/realogy/app/models/realogy/office.rb', line 69 def country self.dig_for_string("officeSummary", "officeAddress", "country") end |
#country_code ⇒ Object
countryCode : String ISO Code of the country
76 77 78 |
# File 'lib/realogy/app/models/realogy/office.rb', line 76 def country_code self.dig_for_string("officeSummary", "officeAddress", "countryCode") end |
#default_photo_url ⇒ Object
defaultPhotoURL : String URL for the default photo associated with the Office
83 84 85 |
# File 'lib/realogy/app/models/realogy/office.rb', line 83 def default_photo_url self.dig_for_string("defaultPhotoURL") end |
#district ⇒ Object
district : String Subdivision name in the country or region for the address. In USA it’s same as County.
90 91 92 |
# File 'lib/realogy/app/models/realogy/office.rb', line 90 def district self.dig_for_string("officeSummary", "officeAddress", "district") end |
#email_address ⇒ Object
emailAddress : String description“: ”Main contact email address for the office
97 98 99 |
# File 'lib/realogy/app/models/realogy/office.rb', line 97 def email_address self.dig_for_string("officeSummary", "emailAddress") end |
#entity_preference ⇒ Object
entityPreference : [Hash] Array of entityPreference associated with the office
104 105 106 |
# File 'lib/realogy/app/models/realogy/office.rb', line 104 def entity_preference self.dig_for_array("entityPreference") end |
#fax_number ⇒ Object
faxNumber : String Fax number for the office
111 112 113 |
# File 'lib/realogy/app/models/realogy/office.rb', line 111 def fax_number self.dig_for_string("officeSummary", "faxNumber") end |
#formatted_address ⇒ Object
formattedAddress : String Formatted address for display purpose
118 119 120 |
# File 'lib/realogy/app/models/realogy/office.rb', line 118 def formatted_address self.dig_for_string("officeSummary", "officeAddress", "formattedAddress") end |
#geographic_regions ⇒ Object
geographicRegions : Array A collection of geographic regions associated with the Office location
125 126 127 |
# File 'lib/realogy/app/models/realogy/office.rb', line 125 def geographic_regions self.dig_for_array("geographicRegions") end |
#languages_spoken ⇒ Object
languagesSpoken : Array A collection of languages spoken by Agents that work out of the office
132 133 134 |
# File 'lib/realogy/app/models/realogy/office.rb', line 132 def languages_spoken self.dig_for_array("languagesSpoken") end |
#last_updated ⇒ Object
lastUpdateOn : DateTime The date/time that the Office record was last updated in the system (UTC)
139 140 141 |
# File 'lib/realogy/app/models/realogy/office.rb', line 139 def last_updated self.dig_for_datetime("lastUpdateOn") end |
#latitude ⇒ Object
latitude : Decimal Latitude of a location
146 147 148 |
# File 'lib/realogy/app/models/realogy/office.rb', line 146 def latitude self.dig_for_decimal("officeSummary", "officeAddress", "latitude") end |
#lead_email_address ⇒ Object
leadEmailAddress : String Email address to send any leads generated for the Office
153 154 155 |
# File 'lib/realogy/app/models/realogy/office.rb', line 153 def lead_email_address self.dig_for_string("leadEmailAddress") end |
#longitude ⇒ Object
longitude : Decimal Longitude of a location
160 161 162 |
# File 'lib/realogy/app/models/realogy/office.rb', line 160 def longitude self.dig_for_decimal("officeSummary", "officeAddress", "longitude") end |
#media ⇒ Object
media : [Hash]
166 167 168 |
# File 'lib/realogy/app/models/realogy/office.rb', line 166 def media self.dig_for_array("media") end |
#mls_information ⇒ Object
mlsInformation : Array A collection of MLS numbers associated with an Office
173 174 175 |
# File 'lib/realogy/app/models/realogy/office.rb', line 173 def mls_information self.dig_for_array("mlsInformation") end |
#name ⇒ Object
name : String Name of the office
180 181 182 |
# File 'lib/realogy/app/models/realogy/office.rb', line 180 def name self.dig_for_string("officeSummary", "name") end |
#office_address ⇒ Object
officeAddress : Hash
186 187 188 |
# File 'lib/realogy/app/models/realogy/office.rb', line 186 def office_address self.dig_for_hash("officeSummary", "officeAddress") end |
#office_id ⇒ Object
officeId : String Globally unique identifier assigned to an office by Realogy
193 194 195 |
# File 'lib/realogy/app/models/realogy/office.rb', line 193 def office_id self.dig_for_string("officeSummary", "officeId") end |
#office_manager_name ⇒ Object
officeManagerName : String Name of the Office Manager
200 201 202 |
# File 'lib/realogy/app/models/realogy/office.rb', line 200 def office_manager_name self.dig_for_string("officeManagerName") end |
#office_summary ⇒ Object
officeSummary
206 207 208 |
# File 'lib/realogy/app/models/realogy/office.rb', line 206 def office_summary self.dig_for_hash("officeSummary") end |
#office_type ⇒ Object
type : String Type of office (Main, Branch, etc.)
213 214 215 |
# File 'lib/realogy/app/models/realogy/office.rb', line 213 def office_type self.dig_for_string("officeSummary", "type") end |
#phone_number ⇒ Object
phoneNumber : String Main contact phone number for the office
220 221 222 |
# File 'lib/realogy/app/models/realogy/office.rb', line 220 def phone_number self.dig_for_string("officeSummary", "phoneNumber") end |
#postal_code ⇒ Object
postalCode : String ZIP/Postal code“
227 228 229 |
# File 'lib/realogy/app/models/realogy/office.rb', line 227 def postal_code self.dig_for_string("officeSummary", "officeAddress", "postalCode") end |
#recruiting_email_address ⇒ Object
recruitingEmailAddress : String Email address to send any recruiting-related communications for the Office
234 235 236 |
# File 'lib/realogy/app/models/realogy/office.rb', line 234 def recruiting_email_address self.dig_for_string("recruitingEmailAddress") end |
#remarks ⇒ Object
remarks : [Hash] Collection of remarks for the Office
241 242 243 |
# File 'lib/realogy/app/models/realogy/office.rb', line 241 def remarks self.dig_for_array("remarks") end |
#rfg_company_id ⇒ Object
RFGCompanyId : String Unique identifier assigned to a company by Realogy
248 249 250 |
# File 'lib/realogy/app/models/realogy/office.rb', line 248 def rfg_company_id self.dig_for_string("RFGCompanyId") end |
#rfg_office_id ⇒ Object
RFGOfficeId : String Unique identifier assigned to an office by Realogy
255 256 257 |
# File 'lib/realogy/app/models/realogy/office.rb', line 255 def rfg_office_id self.dig_for_string("RFGOfficeId") end |
#seasonal_close_mmdd ⇒ Object
seasonalCloseMMDD : String If a Seasonal Office, the month/day on which the Office closes in a year
262 263 264 |
# File 'lib/realogy/app/models/realogy/office.rb', line 262 def seasonal_close_mmdd self.dig_for_string("seasonalCloseMMDD") end |
#seasonal_open_mmdd ⇒ Object
seasonalOpenMMDD : String If a Seasonal Office, the month/day on which the Office opens in a year
269 270 271 |
# File 'lib/realogy/app/models/realogy/office.rb', line 269 def seasonal_open_mmdd self.dig_for_string("seasonalOpenMMDD") end |
#special_markets ⇒ Object
specialMarkets : Array A list of Markets that the Office specializes in
276 277 278 |
# File 'lib/realogy/app/models/realogy/office.rb', line 276 def special_markets self.dig_for_array("specialMarkets") end |
#state_province ⇒ Object
stateProvince : String State/Province where the address is
283 284 285 |
# File 'lib/realogy/app/models/realogy/office.rb', line 283 def state_province self.dig_for_string("officeSummary", "officeAddress", "stateProvince") end |
#state_province_code ⇒ Object
stateProvinceCode : String ISO code of the state/subdivision
290 291 292 |
# File 'lib/realogy/app/models/realogy/office.rb', line 290 def state_province_code self.dig_for_string("officeSummary", "officeAddress", "stateProvinceCode") end |
#street_address ⇒ Object
streetAddress : String Street address“
297 298 299 |
# File 'lib/realogy/app/models/realogy/office.rb', line 297 def street_address self.dig_for_string("officeSummary", "officeAddress", "streetAddress") end |
#website_url ⇒ Object
websiteURL : String URL to the Office’s website
304 305 306 |
# File 'lib/realogy/app/models/realogy/office.rb', line 304 def website_url self.dig_for_string("websiteURL") end |