class Realogy::Agent

Public Instance Methods

addl_emails() click to toggle source

addlEmails : [Hash] Additional emails of agent

# File lib/realogy/app/models/realogy/agent.rb, line 6
def addl_emails
  self.dig_for_array("addlEmails")
end
addl_languages_names() click to toggle source

addlLanguageNames : [Hash] Additional languages of agent

# File lib/realogy/app/models/realogy/agent.rb, line 13
def addl_languages_names
  self.dig_for_array("addlLanguageNames")
end
addl_phones() click to toggle source

addlPhones : [Hash] Additional phone numbers for agent

# File lib/realogy/app/models/realogy/agent.rb, line 20
def addl_phones
  self.dig_for_array("addlPhones")
end
agent_id() click to toggle source

id : String Globally unique identifier assigned to an Agent by Realogy

# File lib/realogy/app/models/realogy/agent.rb, line 33
def agent_id
  self.dig_for_string("agentSummary", "id")
end
agent_summary() click to toggle source

agentSummary : Hash

# File lib/realogy/app/models/realogy/agent.rb, line 26
def agent_summary
  self.dig_for_hash("agentSummary")
end
areas_of_specialization() click to toggle source

areasOfSpecialization : [String] Area of specialization for the agent

# File lib/realogy/app/models/realogy/agent.rb, line 40
def areas_of_specialization
  self.dig_for_array("areasOfSpecialization")
end
business_phone() click to toggle source

businessPhone : String Business phone number of agent

# File lib/realogy/app/models/realogy/agent.rb, line 47
def business_phone
  self.dig_for_string("agentSummary", "businessPhone")
end
business_phone_ext() click to toggle source

businessPhoneExt : String Business phone extension of agent

# File lib/realogy/app/models/realogy/agent.rb, line 54
def business_phone_ext
  self.dig_for_string("agentSummary", "businessPhoneExt")
end
company_brand_code() click to toggle source

office / brandCode : String The Franchise that the Office is part of

# File lib/realogy/app/models/realogy/agent.rb, line 61
def company_brand_code
  self.dig_for_string("agentSummary", "office", "brandCode")
end
company_id() click to toggle source

office / companyId : String description“: ”Globally unique identifier assigned to a company by Realogy

# File lib/realogy/app/models/realogy/agent.rb, line 68
def company_id
  self.dig_for_string("agentSummary", "office", "companyId")
end
company_name() click to toggle source

office / companyName : String Name of the Company

# File lib/realogy/app/models/realogy/agent.rb, line 75
def company_name
  self.dig_for_string("agentSummary", "office", "companyName")
end
default_photo_url() click to toggle source

defaultPhotoURL : String Profile photo URL for the Agent

# File lib/realogy/app/models/realogy/agent.rb, line 82
def default_photo_url
  self.dig_for_string("agentSummary", "defaultPhotoURL")
end
designations() click to toggle source

designations : String Designation of the agent

# File lib/realogy/app/models/realogy/agent.rb, line 89
def designations
  self.dig_for_string("designations")
end
display_title() click to toggle source

displayTitle : String Title of the agent

# File lib/realogy/app/models/realogy/agent.rb, line 96
def display_title
  self.dig_for_string("agentSummary", "displayTitle")
end
email_address() click to toggle source

emailAddress : String Email address of the agent

# File lib/realogy/app/models/realogy/agent.rb, line 103
def email_address
  self.dig_for_string("agentSummary", "emailAddress")
end
first_name() click to toggle source

firstName : String First name of the agent

# File lib/realogy/app/models/realogy/agent.rb, line 110
def first_name
  self.dig_for_string("agentSummary", "firstName")
end
gender() click to toggle source

gender : String Gender of the agent (male/female)

# File lib/realogy/app/models/realogy/agent.rb, line 117
def gender
  self.dig_for_string("agentSummary", "gender")
end
has_producing_role?() click to toggle source

isProducingRole : Boolean

# File lib/realogy/app/models/realogy/agent.rb, line 123
def has_producing_role?
  return nil unless (arr = self.roles).is_a?(Array)
  arr.map{|r| r.dig_for_boolean("isProducingRole")}.include?(true)
end
is_agent?() click to toggle source

isAgent : Boolean Indicates whether the person is an agent or not

# File lib/realogy/app/models/realogy/agent.rb, line 131
def is_agent?
  self.dig_for_boolean("agentSummary", "isAgent")
end
is_full_time?() click to toggle source

isFullTime : Boolean

# File lib/realogy/app/models/realogy/agent.rb, line 137
def is_full_time?
  return nil unless (arr = self.roles).is_a?(Array)
  arr.map{|r| r.dig_for_boolean("isFullTime")}.include?(true)
end
is_team_member?() click to toggle source

isTeamMember : Boolean Indicates whether the person is a team member or not

# File lib/realogy/app/models/realogy/agent.rb, line 145
def is_team_member?
  self.dig_for_boolean("isTeamMember")
end
languages_spoken() click to toggle source

languagesSpoken : [Hash] The languages agent speaks

# File lib/realogy/app/models/realogy/agent.rb, line 152
def languages_spoken
  self.dig_for_array("languagesSpoken")
end
last_name() click to toggle source

lastName : String Last name of the agent

# File lib/realogy/app/models/realogy/agent.rb, line 159
def last_name
  self.dig_for_string("agentSummary", "lastName")
end
last_updated() click to toggle source

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

# File lib/realogy/app/models/realogy/agent.rb, line 166
def last_updated
  self.dig_for_datetime("lastUpdateOn")
end
lead_email_address() click to toggle source

leadEmailAddress : String Email address to send leads to the agent

# File lib/realogy/app/models/realogy/agent.rb, line 173
def lead_email_address
  self.dig_for_string("agentSummary", "leadEmailAddress")
end
license_info() click to toggle source

licenseInfo : [Hash] A collection of licenses associated with the Agent

# File lib/realogy/app/models/realogy/agent.rb, line 180
def license_info
  self.dig_for_array("licenseInfo")
end
media() click to toggle source

media: [Hash]

# File lib/realogy/app/models/realogy/agent.rb, line 186
def media
  self.dig_for_array("media")
end
middle_name() click to toggle source

middleName : String Middle name of the agent

# File lib/realogy/app/models/realogy/agent.rb, line 193
def middle_name
  self.dig_for_string("agentSummary", "middleName")
end
mls_information() click to toggle source

mlsInformation : [String] MLS numbers associated with the Agent

# File lib/realogy/app/models/realogy/agent.rb, line 200
def mls_information
  self.dig_for_array("mlsInformation")
end
mobile_phone() click to toggle source

mobilePhone : String Mobile phone number of agent

# File lib/realogy/app/models/realogy/agent.rb, line 207
def mobile_phone
  self.dig_for_string("agentSummary", "mobilePhone")
end
name() click to toggle source

name : String Display Name of the agent

# File lib/realogy/app/models/realogy/agent.rb, line 214
def name
  self.dig_for_string("agentSummary", "name")
end
office() click to toggle source

office : String

# File lib/realogy/app/models/realogy/agent.rb, line 220
def office
  self.dig_for_string("agentSummary", "office")
end
office_address() click to toggle source

office / officeAddress : Hash

# File lib/realogy/app/models/realogy/agent.rb, line 226
def office_address
  self.dig_for_hash("agentSummary", "office", "officeAddress")
end
office_city() click to toggle source

office / officeAddress / city : String City

# File lib/realogy/app/models/realogy/agent.rb, line 233
def office_city
  self.dig_for_string("agentSummary", "office", "officeAddress", "city")
end
office_country() click to toggle source

office / officeAddress / country : String Country

# File lib/realogy/app/models/realogy/agent.rb, line 240
def office_country
  self.dig_for_string("agentSummary", "office", "officeAddress", "country")
end
office_country_code() click to toggle source

office / officeAddress / countryCode : String ISO Code of the country

# File lib/realogy/app/models/realogy/agent.rb, line 247
def office_country_code
  self.dig_for_string("agentSummary", "office", "officeAddress", "countryCode")
end
office_district() click to toggle source

office / officeAddress / district : String Subdivision name in the country or region for the address. In USA it's same as County.

# File lib/realogy/app/models/realogy/agent.rb, line 254
def office_district
  self.dig_for_string("agentSummary", "office", "officeAddress", "district")
end
office_email_address() click to toggle source

office / emailAddress : String Main contact email address for the office

# File lib/realogy/app/models/realogy/agent.rb, line 261
def office_email_address
  self.dig_for_string("agentSummary", "office", "emailAddress")
end
office_fax_number() click to toggle source

office / faxNumber : String Fax number for the office

# File lib/realogy/app/models/realogy/agent.rb, line 268
def office_fax_number
  self.dig_for_string("agentSummary", "office", "faxNumber")
end
office_formatted_address() click to toggle source

office / officeAddress / formattedAddress : String Formatted address for display purpose

# File lib/realogy/app/models/realogy/agent.rb, line 275
def office_formatted_address
  self.dig_for_string("agentSummary", "office", "officeAddress", "formattedAddress")
end
office_id() click to toggle source

office / officeId : String Globally unique identifier assigned to an office by Realogy

# File lib/realogy/app/models/realogy/agent.rb, line 282
def office_id
  self.dig_for_string("agentSummary", "office", "officeId")
end
office_latitude() click to toggle source

office / officeAddress / latitude : Decimal Latitude of a location

# File lib/realogy/app/models/realogy/agent.rb, line 289
def office_latitude
  self.dig_for_decimal("agentSummary", "office", "officeAddress", "latitude")
end
office_longitude() click to toggle source

office / officeAddress / longitude : Decimal Longitude of a location

# File lib/realogy/app/models/realogy/agent.rb, line 296
def office_longitude
  self.dig_for_decimal("agentSummary", "office", "officeAddress", "longitude")
end
office_name() click to toggle source

office / name : String Name of the office

# File lib/realogy/app/models/realogy/agent.rb, line 303
def office_name
  self.dig_for_string("agentSummary", "office", "name")
end
office_phone_number() click to toggle source

office / officeAddress / phoneNumber : String Main contact phone number for the office

# File lib/realogy/app/models/realogy/agent.rb, line 310
def office_phone_number
  self.dig_for_string("agentSummary", "office", "officeAddress", "phoneNumber")
end
office_postal_code() click to toggle source

office / officeAddress / postalCode : String ZIP/Postal code

# File lib/realogy/app/models/realogy/agent.rb, line 317
def office_postal_code
  self.dig_for_string("agentSummary", "office", "officeAddress", "postalCode")
end
office_state_province() click to toggle source

office / officeAddress / stateProvince : String State/Province where the address is

# File lib/realogy/app/models/realogy/agent.rb, line 324
def office_state_province
  self.dig_for_string("agentSummary", "office", "officeAddress", "stateProvince")
end
office_state_province_code() click to toggle source

office / officeAddress / stateProvinceCode : String ISO code of the state

# File lib/realogy/app/models/realogy/agent.rb, line 331
def office_state_province_code
  self.dig_for_string("agentSummary", "office", "officeAddress", "stateProvinceCode")
end
office_street_address() click to toggle source

office / officeAddress / streetAddress : String Street address

# File lib/realogy/app/models/realogy/agent.rb, line 338
def office_street_address
  self.dig_for_string("agentSummary", "office", "officeAddress", "streetAddress")
end
office_type() click to toggle source

office / type : String Type of office (Main, Branch, etc.)

# File lib/realogy/app/models/realogy/agent.rb, line 345
def office_type
  self.dig_for_string("agentSummary", "office", "type")
end
remarks() click to toggle source

remarks : [Hash] A collection of Profile descriptions associated with the Agent

# File lib/realogy/app/models/realogy/agent.rb, line 352
def remarks
  self.dig_for_array("remarks")
end
roles() click to toggle source

roles : [Hash] Role details of the agent

# File lib/realogy/app/models/realogy/agent.rb, line 359
def roles
  self.dig_for_array("roles")
end
specialty() click to toggle source

specialty : String Specialty of the agent

# File lib/realogy/app/models/realogy/agent.rb, line 366
def specialty
  self.dig_for_string("agentSummary", "specialty")
end
websites() click to toggle source

webSites : [Hash] A collection of websites associated with the Agent

# File lib/realogy/app/models/realogy/agent.rb, line 373
def websites
  self.dig_for_array("webSites")
end