Class: Realogy::Office

Inherits:
Entity show all
Defined in:
lib/realogy/app/models/realogy/office.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 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_numbersObject

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_websitesObject

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_servedObject

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_codeObject

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_nameObject

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

#cityObject

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_idObject

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_nameObject

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

#countryObject

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_codeObject

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_urlObject

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

#districtObject

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_addressObject

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_preferenceObject

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_numberObject

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_addressObject

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_regionsObject

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_spokenObject

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_updatedObject

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

#latitudeObject

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_addressObject

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

#longitudeObject

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

#mediaObject

media : [Hash]



166
167
168
# File 'lib/realogy/app/models/realogy/office.rb', line 166

def media
  self.dig_for_array("media")
end

#mls_informationObject

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

#nameObject

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_addressObject

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_idObject

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_nameObject

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_summaryObject

officeSummary



206
207
208
# File 'lib/realogy/app/models/realogy/office.rb', line 206

def office_summary
  self.dig_for_hash("officeSummary")
end

#office_typeObject

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_numberObject

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_codeObject

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_addressObject

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

#remarksObject

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_idObject

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_idObject

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_mmddObject

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_mmddObject

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_marketsObject

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_provinceObject

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_codeObject

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_addressObject

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_urlObject

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