Class: Realogy::Listing
- Inherits:
-
Entity
- Object
- ActiveRecord::Base
- ApplicationRecord
- Entity
- Realogy::Listing
- Defined in:
- lib/realogy/app/models/realogy/listing.rb
Instance Method Summary collapse
-
#active? ⇒ Boolean
isActive : Boolean Will be ‘true’ if this is an Active listing.
-
#agents ⇒ Object
agents : [Hash] The agent(s) associated with the Listing.
-
#agricultural_property_number ⇒ Object
agriculturalPropertyNumber : String A unique identifier given for the agriculture property.
-
#anchor_stores ⇒ Object
anchorStores : String The stores within the shopping complex that draw traffic to the location.
-
#annual_tax ⇒ Object
annualTax : Decimal The annualTax associated with the listing.
-
#available_floors ⇒ Object
availableFloors : Integer The total number of floors available within a property’s Listing.
-
#available_space ⇒ Object
availableSpace : Decimal The space available in the commercial property.
-
#average_floor_size ⇒ Object
averageFloorSize : Decimal The size of the floor in an average.
-
#average_occupancy_rate ⇒ Object
averageOccupancyRate : Decimal The number of units in a building that have been rented out as compared to the total number of units in the building.
-
#bay_depth ⇒ Object
bayDepth : String The distance from the front to the back of the bay.
-
#building_area ⇒ Object
buildingArea : String BuildingArea of the property.
-
#building_class ⇒ Object
buildingClass : String The Subjective quality rating of buildings which indicates the competitive ability of each building to attract similar types of tenants.
-
#by_appointment_only? ⇒ Boolean
isByAppointmentOnly : Boolean Will be ‘true’ if a prospective buyer or agent has to contact the Seller to schedule an appoinment to view the Property.
-
#call_to_show? ⇒ Boolean
isCallToShow : Boolean Will be ‘true’ if a prospective buyer or agent has to contact the Seller to schedule an appoinment to view the Property.
-
#cap_rate_percent ⇒ Object
capRatePercent : Decimal The capitalization rate on the property in percentage.
-
#cash_flow ⇒ Object
cashFlow : Decimal The amount of cash flow the property brings in if its on sale.
-
#ceiling_height ⇒ Object
ceilingHeight : String The distance from the floor to the lowest hanging ceiling member or hanging objects of the industrial work area.
- #city ⇒ Object
-
#clearance ⇒ Object
clearance : String The distance from the floor to the lowest hanging ceiling member or hanging objects, beams, joists or truss work descending down into a substantial portion of the industrial work area.
-
#column_spacing ⇒ Object
columnSpacing : String The distance between posts or vertical supporting beams in an industrial building.
-
#common_area_factor ⇒ Object
commonAreaFactor : Decimal The shared spaces on a single floor, and within a building in its entirety.
-
#company_names ⇒ Object
Array.
- #country ⇒ Object
- #country_code ⇒ Object
-
#default_photo_url ⇒ Object
defaultPhotoURL : String URL to the default photo for the property.
-
#development ⇒ Object
development : String The name of the Development that the property is located in.
- #district ⇒ Object
-
#dock_height ⇒ Object
dockHeight : String The amount of distance the height of the slab at the bottom of an overhead door is from the ground level.
-
#down_payment ⇒ Object
downPayment : Decimal The down payment required by the current owner for a commercial listing.
-
#floors ⇒ Object
floors : Array Collection of floors for the property.
- #formatted_address ⇒ Object
-
#full_bath ⇒ Object
fullBath : Integer Number of full baths in the property.
-
#fully_leased_income ⇒ Object
fullyLeasedIncome : Decimal The income that the owner currently receives if the property is fully leased.
- #geocode_confidence_level ⇒ Object
-
#geographic_regions ⇒ Object
geographicRegions : [Hash] A collection of geographic regions associated with the location of the property.
-
#gross_income ⇒ Object
grossIncome : Decimal The gross income that the owner currently receives if the property is fully leased.
-
#ground_level? ⇒ Boolean
isGroundLevel : Boolean The Industrial ground level of the property.
-
#half_bath ⇒ Object
halfBath : Integer Number of half baths in the property.
-
#has_cross_docks? ⇒ Boolean
isCrossDocks : Boolean Indicates whether the property has the CrossDocks associated with it.
- #has_open_house? ⇒ Boolean
-
#has_rail_access? ⇒ Boolean
hasRailAccess : Boolean Indicates whether the property has the industrial rail access to it.
-
#has_sprinkler? ⇒ Boolean
isSprinkler : Boolean Indicates whether property has the industrial sprinkler to it.
-
#hide_list_price? ⇒ Boolean
isHideListPrice : Boolean Will be ‘true’ if the list price is not supposed to be shown on consumer site.
-
#is_for_auction? ⇒ Boolean
isForAuction : Boolean Will be ‘true’ if this property is being sold by Auction.
-
#is_foreclosure? ⇒ Boolean
isForeClosure : Boolean Indicates if the property is for foreclosure.
-
#is_short_sale? ⇒ Boolean
isShortSale : Boolean Indicates if the property is for short sale.
-
#last_sold_on ⇒ Object
lastSoldOn : DateTime Timestamp on which the property is previously sold.
-
#last_updated ⇒ Object
lastUpdateOn : DateTime Timestamp when the listing was last updated at Realogy system.
- #latitude ⇒ Object
-
#lead_email ⇒ Object
TODO EXIST?.
-
#lease_term ⇒ Object
leaseTerm : String Indicates the Measurement.
-
#lease_type ⇒ Object
leaseType : String The type of lease for a listing.
-
#levels ⇒ Object
levels : Integer The number of levels (or storeys) in the Property.
-
#linked_office ⇒ Object
TODO EXIST?.
-
#list_price ⇒ Object
listPrice.
- #list_price_amount ⇒ Object
- #list_price_currency_code ⇒ Object
- #list_price_in_usd ⇒ Object
-
#listed_on ⇒ Object
listedOn : String The date when the Listing became active.
-
#listing_id ⇒ Object
listingId : String Globally unique identifier assigned to a listing by Realogy.
-
#listing_type ⇒ Object
listingType : String The type of Listings you are interested in.
-
#listing_url ⇒ Object
listingURL : String Public URL where the listing can be accessed.
-
#loan_payment ⇒ Object
loanPayment : Decimal The current loan payment value on the property being paid by the owner.
- #longitude ⇒ Object
-
#lot_dimension ⇒ Object
lotDimension : String The dimensions of the Lot that the property is located in.
-
#lot_size ⇒ Object
lotSize : String Lot size of the property.
-
#mapping_allowed? ⇒ Boolean
isAllowMapping : Boolean Indicates whether or not the property address should be displayed on a map.
-
#max_contiguous_area ⇒ Object
maxContiguousArea : Decimal The largest amount of open space available in a commercial building.
-
#maximum_lease_rate ⇒ Object
maximumLeaseRate : Decimal The Maximum Lease Rate associated with the listing.
-
#media ⇒ Object
media : Array Collection of media for this property.
-
#min_divisible_area ⇒ Object
minDivisibleArea : Decimal The minimum space which can be leased.
-
#minimum_lease_rate ⇒ Object
minimumLeaseRate : Decimal The Minimum Lease Rate associated with the listing.
-
#mls_information ⇒ Object
mlsInformation : Array Collection of MLS information for the property.
-
#mls_numbers ⇒ Object
mlsNumbers : [String] A collection of MLS numbers associated with the Listing.
-
#net_operating_income ⇒ Object
netOperatingIncome : Decimal The potential rental income plus other income, less vacancy, credit losses, and operating expenses.
-
#new_construction? ⇒ Boolean
isNewConstruction : Boolean Will be ‘true’ if the Property is a new construction.
-
#no_of_bedrooms ⇒ Object
noOfBedrooms : Integer Number of bedrooms in the property.
-
#number_of_ballrooms ⇒ Object
numberOfBallrooms : Integer The number of ballrooms in a property.
-
#number_of_conference_rooms ⇒ Object
numberOfConferenceRooms : Integer The number of conference rooms in a property.
-
#number_of_docks ⇒ Object
numberOfDocks : Integer The Number of Docks associated with the property.
-
#occupancy_rate ⇒ Object
occupancyRate : Integer The number of units in a building that have been rented out as compared to the total number of units in the building.
-
#open_house ⇒ Object
openHouse : [Hash] Collection of OpenHouses for the property.
-
#parking_places ⇒ Object
parkingPlaces : Integer Number of parking places in the property.
-
#parking_ratio ⇒ Object
parkingRatio : Decimal The ratio of available standard parking spaces to the gross leasable area of a property.
-
#partial_bath ⇒ Object
partialBath : Integer Number of partial baths in the property.
-
#pending? ⇒ Boolean
isPending : Boolean Will be ‘true’ if this is presently Under Contract (Pending).
-
#photo_count ⇒ Object
photoCount : Integer Number of photos associated with listing.
- #postal_code ⇒ Object
-
#power ⇒ Object
power : String The type and voltage of power applicable for the property.
-
#price_per_area ⇒ Object
pricePerArea : Decimal The price per area of the property, this is generally the list price divided by the area.
- #price_upon_request? ⇒ Boolean
-
#property_address ⇒ Object
propertyAddress.
-
#property_category ⇒ Object
propertyCategory : String Category of property.
-
#property_features ⇒ Object
propertyFeatures : Array Collection of features for the property.
-
#property_fees ⇒ Object
propertyFees : Array Collection of property fees.
-
#property_floors ⇒ Object
propertyFloors : Array Collection of property floors for the property.
-
#property_name ⇒ Object
propertyName : String Name of Property.
-
#property_rooms ⇒ Object
propertyRooms : Array Collection of propertyRooms for the property.
-
#property_style ⇒ Object
propertyStyle : String Property Style.
-
#property_type ⇒ Object
propertyType : String Property Type.
-
#property_use ⇒ Object
propertyUse : String Property Use information of the property.
-
#provider_category ⇒ Object
providerCategory : String The category of the provider of the listing information.
-
#provider_key ⇒ Object
providerKey : String The unique identifier for the listing in the provider’s system.
-
#provider_name ⇒ Object
providerName : String The name of the provider of the listing information.
-
#provider_url ⇒ Object
providerURL : String The URL of the provider of the listing information.
-
#quarter_bath ⇒ Object
quarterBath : Integer Number of quarter baths in the property.
-
#remarks ⇒ Object
remarks : Array Collection of remarks for the property.
-
#rental_frequency ⇒ Object
rentalFrequency : String The frequency at which the Rental amount is to be paid.
-
#rfg_listing_id ⇒ Object
RFGListingId : String A short unique identifier assigned to the Listing by Realogy.
-
#schedule_income ⇒ Object
scheduleIncome : Decimal The gross income that would be collected from a rental property with all units 100% occupied and rented.
-
#schools ⇒ Object
TODO blank strings in returned hash.
-
#show_address_on_internet? ⇒ Boolean
isShowAddressOnInternet : Boolean Will be ‘true’ if the property address shall be displayed on Internet.
-
#square_footage ⇒ Object
squareFootage : Double Square Footage of the property.
- #state_province ⇒ Object
- #state_province_code ⇒ Object
- #street_address ⇒ Object
-
#sub_lease? ⇒ Boolean
isSubLease : Boolean The value indicating whether the listing is a sublease.
-
#sub_units ⇒ Object
subUnits : Array Collection of sub units for the property.
-
#suite_apartment_name ⇒ Object
suiteApartmentName : String The Suite Apartment Name associated with the listing.
-
#suites ⇒ Object
suites : Array Collection of sub units/suites for the property.
-
#tax_id_number ⇒ Object
taxIdNumber : String The Tax Id Number associated with the listing.
-
#tax_information ⇒ Object
taxInformation : Array Tax information associated with the Property.
-
#tax_roll_number ⇒ Object
taxRollNumber : String An identifier for a property within a given jurisdiction, such as a city or county, that can be taxed.
-
#tax_year ⇒ Object
taxYear : Integer The year in which tax was calculated.
-
#team ⇒ Object
team : Hash The team associated with the Listing.
-
#three_quarter_bath ⇒ Object
threeQuarterBath : Integer Number of three quarter baths in the property.
-
#total_acres ⇒ Object
totalAcres : String Total Acres of the property.
-
#total_bath ⇒ Object
totalBath : Integer Number of partial baths in the property.
-
#total_expenses ⇒ Object
totalExpenses : Decimal The Total Expenses associated with the listing.
-
#total_rooms ⇒ Object
totalRooms : Integer Number of total rooms in the property.
-
#total_units ⇒ Object
totalUnits : Integer The Total Units associated with the listing.
-
#turning_radius ⇒ Object
turningRadius : String The available turning radius available in the industrial property.
-
#video_count ⇒ Object
videoCount : Integer Number of videos associated with listing.
-
#websites ⇒ Object
webSites : Array Collection of websites for the property.
-
#year_built ⇒ Object
yearBuilt : String The year in which the property was built.
-
#year_renovated ⇒ Object
yearRenovated : String The year in which the property was last renovated.
-
#zoning ⇒ Object
zoning : String Property in terms of permitted usage of land based on mapped zones by the authorities.
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
#active? ⇒ Boolean
isActive : Boolean
Will be 'true' if this is an Active listing
601 602 603 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 601 def active? self.dig_for_boolean("listingSummary", "isActive") end |
#agents ⇒ Object
agents : [Hash]
The agent(s) associated with the Listing
904 905 906 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 904 def agents self.dig_for_array("listingSummary", "agents") end |
#agricultural_property_number ⇒ Object
agriculturalPropertyNumber : String A unique identifier given for the agriculture property
141 142 143 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 141 def agricultural_property_number self.dig_for_string("agriculturalPropertyNumber") end |
#anchor_stores ⇒ Object
anchorStores : String The stores within the shopping complex that draw traffic to the location
148 149 150 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 148 def anchor_stores self.dig_for_string("anchorStores") end |
#annual_tax ⇒ Object
annualTax : Decimal The annualTax associated with the listing
155 156 157 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 155 def annual_tax self.dig_for_decimal("annualTax") end |
#available_floors ⇒ Object
availableFloors : Integer The total number of floors available within a property’s Listing
162 163 164 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 162 def available_floors self.dig_for_integer("availableFloors") end |
#available_space ⇒ Object
availableSpace : Decimal The space available in the commercial property
169 170 171 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 169 def available_space self.dig_for_decimal("availableSpace") end |
#average_floor_size ⇒ Object
averageFloorSize : Decimal The size of the floor in an average. A calculation of the total building area divided by the number of stories or levels within the building
177 178 179 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 177 def average_floor_size self.dig_for_decimal("averageFloorSize") end |
#average_occupancy_rate ⇒ Object
averageOccupancyRate : Decimal The number of units in a building that have been rented out as compared to the total number of units in the building
185 186 187 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 185 def average_occupancy_rate self.dig_for_decimal("averageOccupancyRate") end |
#bay_depth ⇒ Object
bayDepth : String The distance from the front to the back of the bay
192 193 194 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 192 def bay_depth self.dig_for_string("bayDepth") end |
#building_area ⇒ Object
buildingArea : String
BuildingArea of the property
925 926 927 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 925 def building_area self.dig_for_string("listingSummary", "buildingArea") end |
#building_class ⇒ Object
buildingClass : String The Subjective quality rating of buildings which indicates the competitive ability of each building to attract similar types of tenants
200 201 202 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 200 def building_class self.dig_for_string("buildingClass") end |
#by_appointment_only? ⇒ Boolean
isByAppointmentOnly : Boolean
Will be 'true' if a prospective buyer or agent has to contact the Seller
to schedule an appoinment to view the Property
792 793 794 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 792 def by_appointment_only? self.dig_for_boolean("listingSummary", "isByAppointmentOnly") end |
#call_to_show? ⇒ Boolean
isCallToShow : Boolean
Will be 'true' if a prospective buyer or agent has to contact the Seller
to schedule an appoinment to view the Property
770 771 772 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 770 def call_to_show? self.dig_for_boolean("listingSummary", "isCallToShow") end |
#cap_rate_percent ⇒ Object
capRatePercent : Decimal The capitalization rate on the property in percentage
207 208 209 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 207 def cap_rate_percent self.dig_for_decimal("capRatePercent") end |
#cash_flow ⇒ Object
cashFlow : Decimal The amount of cash flow the property brings in if its on sale
214 215 216 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 214 def cash_flow self.dig_for_decimal("cashFlow") end |
#ceiling_height ⇒ Object
ceilingHeight : String The distance from the floor to the lowest hanging ceiling member or hanging objects of the industrial work area
222 223 224 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 222 def ceiling_height self.dig_for_string("ceilingHeight") end |
#city ⇒ Object
669 670 671 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 669 def city self.dig_for_string("listingSummary", "propertyAddress", "city") end |
#clearance ⇒ Object
clearance : String The distance from the floor to the lowest hanging ceiling member or hanging objects, beams, joists or truss work descending down into a substantial portion of the industrial work area
231 232 233 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 231 def clearance self.dig_for_string("clearance") end |
#column_spacing ⇒ Object
columnSpacing : String The distance between posts or vertical supporting beams in an industrial building
238 239 240 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 238 def column_spacing self.dig_for_string("columnSpacing") end |
#common_area_factor ⇒ Object
commonAreaFactor : Decimal The shared spaces on a single floor, and within a building in its entirety
245 246 247 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 245 def common_area_factor self.dig_for_decimal("commonAreaFactor") end |
#company_names ⇒ Object
Array
5 6 7 8 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 5 def company_names return nil if self.agents.nil? self.agents.map{|a| a.dig_for_string("office", "companyName")}.uniq end |
#country ⇒ Object
673 674 675 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 673 def country self.dig_for_string("listingSummary", "propertyAddress", "country") end |
#country_code ⇒ Object
693 694 695 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 693 def country_code self.dig_for_string("listingSummary", "propertyAddress", "countryCode") end |
#default_photo_url ⇒ Object
defaultPhotoURL : String
URL to the default photo for the property
869 870 871 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 869 def default_photo_url self.dig_for_string("listingSummary", "defaultPhotoURL") end |
#development ⇒ Object
development : String
The name of the Development that the property is located in
755 756 757 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 755 def development self.dig_for_string("listingSummary", "development") end |
#district ⇒ Object
677 678 679 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 677 def district self.dig_for_string("listingSummary", "propertyAddress", "district") end |
#dock_height ⇒ Object
dockHeight : String The amount of distance the height of the slab at the bottom of an overhead door is from the ground level
252 253 254 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 252 def dock_height self.dig_for_string("dockHeight") end |
#down_payment ⇒ Object
downPayment : Decimal The down payment required by the current owner for a commercial listing
259 260 261 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 259 def down_payment self.dig_for_decimal("downPayment") end |
#floors ⇒ Object
floors : Array Collection of floors for the property
557 558 559 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 557 def floors self.dig_for_array("floors") end |
#formatted_address ⇒ Object
705 706 707 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 705 def formatted_address self.dig_for_string("listingSummary", "propertyAddress", "formattedAddress") end |
#full_bath ⇒ Object
fullBath : Integer Number of full baths in the property
13 14 15 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 13 def full_bath self.dig_for_integer("fullBath") end |
#fully_leased_income ⇒ Object
fullyLeasedIncome : Decimal The income that the owner currently receives if the property is fully leased
266 267 268 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 266 def fully_leased_income self.dig_for_decimal("fullyLeasedIncome") end |
#geocode_confidence_level ⇒ Object
713 714 715 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 713 def geocode_confidence_level self.dig_for_string("listingSummary", "propertyAddress", "geoCodeConfidenceLevel") end |
#geographic_regions ⇒ Object
geographicRegions : [Hash]
A collection of geographic regions associated with the location of the property
720 721 722 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 720 def geographic_regions self.dig_for_array("listingSummary", "geographicRegions") end |
#gross_income ⇒ Object
grossIncome : Decimal The gross income that the owner currently receives if the property is fully leased
273 274 275 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 273 def gross_income self.dig_for_decimal("grossIncome") end |
#ground_level? ⇒ Boolean
isGroundLevel : Boolean The Industrial ground level of the property
301 302 303 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 301 def ground_level? self.dig_for_boolean("isGroundLevel") end |
#half_bath ⇒ Object
halfBath : Integer Number of half baths in the property
20 21 22 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 20 def half_bath self.dig_for_integer("halfBath") end |
#has_cross_docks? ⇒ Boolean
isCrossDocks : Boolean Indicates whether the property has the CrossDocks associated with it
294 295 296 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 294 def has_cross_docks? self.dig_for_boolean("isCrossDocks") end |
#has_open_house? ⇒ Boolean
492 493 494 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 492 def has_open_house? self.open_house.present? end |
#has_rail_access? ⇒ Boolean
hasRailAccess : Boolean Indicates whether the property has the industrial rail access to it
280 281 282 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 280 def has_rail_access? self.dig_for_boolean("hasRailAccess") end |
#has_sprinkler? ⇒ Boolean
isSprinkler : Boolean Indicates whether property has the industrial sprinkler to it
308 309 310 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 308 def has_sprinkler? self.dig_for_boolean("isSprinkler") end |
#hide_list_price? ⇒ Boolean
isHideListPrice : Boolean
Will be 'true' if the list price is not supposed to be shown on consumer site
784 785 786 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 784 def hide_list_price? self.dig_for_boolean("listingSummary", "isHideListPrice") end |
#is_for_auction? ⇒ Boolean
isForAuction : Boolean
Will be 'true' if this property is being sold by Auction
777 778 779 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 777 def is_for_auction? self.dig_for_boolean("listingSummary", "isForAuction") end |
#is_foreclosure? ⇒ Boolean
isForeClosure : Boolean
Indicates if the property is for foreclosure
876 877 878 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 876 def is_foreclosure? self.dig_for_boolean("listingSummary", "isForeClosure") end |
#is_short_sale? ⇒ Boolean
isShortSale : Boolean
Indicates if the property is for short sale
883 884 885 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 883 def is_short_sale? self.dig_for_boolean("listingSummary", "isShortSale") end |
#last_sold_on ⇒ Object
lastSoldOn : DateTime
Timestamp on which the property is previously sold
897 898 899 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 897 def last_sold_on self.dig_for_datetime("lastSoldOn") end |
#last_updated ⇒ Object
lastUpdateOn : DateTime
Timestamp when the listing was last updated at Realogy system
890 891 892 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 890 def last_updated self.dig_for_datetime("listingSummary", "lastUpdateOn") end |
#latitude ⇒ Object
681 682 683 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 681 def latitude self.dig_for_decimal("listingSummary", "propertyAddress", "latitude") end |
#lead_email ⇒ Object
TODO EXIST?
134 135 136 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 134 def lead_email self.dig_for_string("leadEmail") end |
#lease_term ⇒ Object
leaseTerm : String Indicates the Measurement. List price or Lease rate or rental value at which the sub unit is available
322 323 324 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 322 def lease_term self.dig_for_string("leaseTerm") end |
#lease_type ⇒ Object
leaseType : String The type of lease for a listing
329 330 331 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 329 def lease_type self.dig_for_string("leaseType") end |
#levels ⇒ Object
levels : Integer The number of levels (or storeys) in the Property
62 63 64 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 62 def levels self.dig_for_integer("levels") end |
#linked_office ⇒ Object
TODO EXIST?
481 482 483 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 481 def linked_office self.dig_for_hash("linkedOffice") end |
#list_price ⇒ Object
listPrice
643 644 645 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 643 def list_price self.dig_for_hash("listingSummary", "listPrice") end |
#list_price_amount ⇒ Object
647 648 649 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 647 def list_price_amount self.dig_for_integer("listingSummary", "listPrice", "amount") end |
#list_price_currency_code ⇒ Object
651 652 653 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 651 def list_price_currency_code self.dig_for_string("listingSummary", "listPrice", "currencyCode") end |
#list_price_in_usd ⇒ Object
655 656 657 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 655 def list_price_in_usd self.dig_for_integer("listingSummary", "listPrice", "listPriceinUSD") end |
#listed_on ⇒ Object
listedOn : String
The date when the Listing became active
623 624 625 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 623 def listed_on self.dig_for_string("listingSummary", "listedOn") end |
#listing_id ⇒ Object
listingId : String
Globally unique identifier assigned to a listing by Realogy
594 595 596 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 594 def listing_id self.dig_for_string("listingSummary", "listingId") end |
#listing_type ⇒ Object
listingType : String
The type of Listings you are interested in. It can be ForSale, ForRent,
ForSaleCommercial and ForLeaseCommercial.
616 617 618 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 616 def listing_type self.dig_for_string("listingSummary", "listingType") end |
#listing_url ⇒ Object
listingURL : String
Public URL where the listing can be accessed
748 749 750 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 748 def listing_url self.dig_for_string("listingSummary", "listingURL") end |
#loan_payment ⇒ Object
loanPayment : Decimal The current loan payment value on the property being paid by the owner
336 337 338 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 336 def loan_payment self.dig_for_decimal("loanPayment") end |
#longitude ⇒ Object
685 686 687 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 685 def longitude self.dig_for_decimal("listingSummary", "propertyAddress", "longitude") end |
#lot_dimension ⇒ Object
lotDimension : String The dimensions of the Lot that the property is located in
55 56 57 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 55 def lot_dimension self.dig_for_string("lotDimension") end |
#lot_size ⇒ Object
lotSize : String
Lot size of the property
841 842 843 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 841 def lot_size self.dig_for_string("listingSummary", "lotSize") end |
#mapping_allowed? ⇒ Boolean
isAllowMapping : Boolean Indicates whether or not the property address should be displayed on a map
287 288 289 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 287 def mapping_allowed? self.dig_for_boolean("isAllowMapping") end |
#max_contiguous_area ⇒ Object
maxContiguousArea : Decimal The largest amount of open space available in a commercial building
343 344 345 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 343 def max_contiguous_area self.dig_for_decimal("maxContiguousArea") end |
#maximum_lease_rate ⇒ Object
maximumLeaseRate : Decimal The Maximum Lease Rate associated with the listing
350 351 352 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 350 def maximum_lease_rate self.dig_for_decimal("maximumLeaseRate") end |
#media ⇒ Object
media : Array Collection of media for this property
527 528 529 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 527 def media self.dig_for_array("media") end |
#min_divisible_area ⇒ Object
minDivisibleArea : Decimal The minimum space which can be leased
357 358 359 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 357 def min_divisible_area self.dig_for_decimal("minDivisibleArea") end |
#minimum_lease_rate ⇒ Object
minimumLeaseRate : Decimal The Minimum Lease Rate associated with the listing
364 365 366 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 364 def minimum_lease_rate self.dig_for_decimal("minimumLeaseRate") end |
#mls_information ⇒ Object
mlsInformation : Array Collection of MLS information for the property
578 579 580 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 578 def mls_information self.dig_for_array("mlsInformation") end |
#mls_numbers ⇒ Object
mlsNumbers : [String]
A collection of MLS numbers associated with the Listing
727 728 729 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 727 def mls_numbers self.dig_for_array("listingSummary", "mlsNumbers") end |
#net_operating_income ⇒ Object
netOperatingIncome : Decimal The potential rental income plus other income, less vacancy, credit losses, and operating expenses
371 372 373 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 371 def self.dig_for_decimal("netOperatingIncome") end |
#new_construction? ⇒ Boolean
isNewConstruction : Boolean
Will be 'true' if the Property is a new construction
741 742 743 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 741 def new_construction? self.dig_for_boolean("listingSummary", "isNewConstruction") end |
#no_of_bedrooms ⇒ Object
noOfBedrooms : Integer
Number of bedrooms in the property
848 849 850 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 848 def no_of_bedrooms self.dig_for_integer("listingSummary", "noOfBedrooms") end |
#number_of_ballrooms ⇒ Object
numberOfBallrooms : Integer The number of ballrooms in a property
385 386 387 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 385 def number_of_ballrooms self.dig_for_integer("numberOfBallrooms") end |
#number_of_conference_rooms ⇒ Object
numberOfConferenceRooms : Integer The number of conference rooms in a property
392 393 394 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 392 def number_of_conference_rooms self.dig_for_integer("numberOfConferenceRooms") end |
#number_of_docks ⇒ Object
numberOfDocks : Integer The Number of Docks associated with the property
378 379 380 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 378 def number_of_docks self.dig_for_integer("numberOfDocks") end |
#occupancy_rate ⇒ Object
occupancyRate : Integer The number of units in a building that have been rented out as compared to the total number of units in the building
400 401 402 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 400 def occupancy_rate self.dig_for_integer("occupancyRate") end |
#open_house ⇒ Object
openHouse : [Hash] Collection of OpenHouses for the property
499 500 501 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 499 def open_house self.dig_for_array("openHouse") end |
#parking_places ⇒ Object
parkingPlaces : Integer Number of parking places in the property
48 49 50 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 48 def parking_places self.dig_for_integer("parkingPlaces") end |
#parking_ratio ⇒ Object
parkingRatio : Decimal The ratio of available standard parking spaces to the gross leasable area of a property
407 408 409 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 407 def parking_ratio self.dig_for_decimal("parkingRatio") end |
#partial_bath ⇒ Object
partialBath : Integer Number of partial baths in the property
41 42 43 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 41 def partial_bath self.dig_for_integer("partialBath") end |
#pending? ⇒ Boolean
isPending : Boolean
Will be 'true' if this is presently Under Contract (Pending)
608 609 610 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 608 def pending? self.dig_for_boolean("listingSummary", "isPending") end |
#photo_count ⇒ Object
photoCount : Integer
Number of photos associated with listing
630 631 632 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 630 def photo_count self.dig_for_integer("listingSummary", "photoCount") end |
#postal_code ⇒ Object
689 690 691 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 689 def postal_code self.dig_for_string("listingSummary", "propertyAddress", "postalCode") end |
#power ⇒ Object
power : String The type and voltage of power applicable for the property
414 415 416 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 414 def power self.dig_for_string("power") end |
#price_per_area ⇒ Object
pricePerArea : Decimal The price per area of the property, this is generally the list price divided by the area
421 422 423 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 421 def price_per_area self.dig_for_decimal("pricePerArea") end |
#price_upon_request? ⇒ Boolean
659 660 661 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 659 def price_upon_request? self.dig_for_boolean("listingSummary", "listPrice", "isPriceUponRequest") end |
#property_address ⇒ Object
propertyAddress
665 666 667 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 665 def property_address self.dig_for_hash("listingSummary", "propertyAddress") end |
#property_category ⇒ Object
propertyCategory : String
Category of property
799 800 801 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 799 def property_category self.dig_for_string("listingSummary", "propertyCategory") end |
#property_features ⇒ Object
propertyFeatures : Array Collection of features for the property
488 489 490 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 488 def property_features self.dig_for_array("propertyFeatures") end |
#property_fees ⇒ Object
propertyFees : Array Collection of property fees
513 514 515 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 513 def property_fees self.dig_for_array("propertyFees") end |
#property_floors ⇒ Object
propertyFloors : Array Collection of property floors for the property
550 551 552 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 550 def property_floors self.dig_for_array("propertyFloors") end |
#property_name ⇒ Object
propertyName : String
Name of Property
827 828 829 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 827 def property_name self.dig_for_string("listingSummary", "propertyName") end |
#property_rooms ⇒ Object
propertyRooms : Array Collection of propertyRooms for the property
543 544 545 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 543 def property_rooms self.dig_for_array("propertyRooms") end |
#property_style ⇒ Object
propertyStyle : String
Property Style
813 814 815 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 813 def property_style self.dig_for_string("listingSummary", "propertyStyle") end |
#property_type ⇒ Object
propertyType : String
Property Type
806 807 808 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 806 def property_type self.dig_for_string("listingSummary", "propertyType") end |
#property_use ⇒ Object
propertyUse : String
Property Use information of the property
820 821 822 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 820 def property_use self.dig_for_string("listingSummary", "propertyUse") end |
#provider_category ⇒ Object
providerCategory : String The category of the provider of the listing information
111 112 113 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 111 def provider_category self.dig_for_string("providerCategory") end |
#provider_key ⇒ Object
providerKey : String The unique identifier for the listing in the provider’s system
125 126 127 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 125 def provider_key self.dig_for_string("providerKey") end |
#provider_name ⇒ Object
providerName : String The name of the provider of the listing information
104 105 106 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 104 def provider_name self.dig_for_string("providerName") end |
#provider_url ⇒ Object
providerURL : String The URL of the provider of the listing information
118 119 120 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 118 def provider_url self.dig_for_string("providerURL") end |
#quarter_bath ⇒ Object
quarterBath : Integer Number of quarter baths in the property
27 28 29 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 27 def quarter_bath self.dig_for_integer("quarterBath") end |
#remarks ⇒ Object
remarks : Array Collection of remarks for the property
506 507 508 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 506 def remarks self.dig_for_array("remarks") end |
#rental_frequency ⇒ Object
rentalFrequency : String
The frequency at which the Rental amount is to be paid
762 763 764 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 762 def rental_frequency self.dig_for_string("listingSummary", "rentalFrequency") end |
#rfg_listing_id ⇒ Object
734 735 736 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 734 def rfg_listing_id self.dig_for_string("listingSummary", "RFGListingId") end |
#schedule_income ⇒ Object
scheduleIncome : Decimal The gross income that would be collected from a rental property with all units 100% occupied and rented
428 429 430 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 428 def schedule_income self.dig_for_decimal("scheduleIncome") end |
#schools ⇒ Object
TODO blank strings in returned hash
536 537 538 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 536 def schools self.dig_for_array("schools") end |
#show_address_on_internet? ⇒ Boolean
isShowAddressOnInternet : Boolean
Will be 'true' if the property address shall be displayed on Internet
918 919 920 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 918 def show_address_on_internet? self.dig_for_boolean("listingSummary", "isShowAddressOnInternet") end |
#square_footage ⇒ Object
squareFootage : Double
Square Footage of the property
862 863 864 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 862 def square_footage self.dig_for_decimal("listingSummary", "squareFootage") end |
#state_province ⇒ Object
697 698 699 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 697 def state_province self.dig_for_string("listingSummary", "propertyAddress", "stateProvince") end |
#state_province_code ⇒ Object
709 710 711 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 709 def state_province_code self.dig_for_string("listingSummary", "propertyAddress", "stateProvinceCode") end |
#street_address ⇒ Object
701 702 703 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 701 def street_address self.dig_for_string("listingSummary", "propertyAddress", "streetAddress") end |
#sub_lease? ⇒ Boolean
isSubLease : Boolean The value indicating whether the listing is a sublease
315 316 317 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 315 def sub_lease? self.dig_for_boolean("isSubLease") end |
#sub_units ⇒ Object
subUnits : Array Collection of sub units for the property
564 565 566 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 564 def sub_units self.dig_for_array("subUnits") end |
#suite_apartment_name ⇒ Object
suiteApartmentName : String The Suite Apartment Name associated with the listing
435 436 437 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 435 def suite_apartment_name self.dig_for_string("power") end |
#suites ⇒ Object
suites : Array Collection of sub units/suites for the property
571 572 573 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 571 def suites self.dig_for_array("suites") end |
#tax_id_number ⇒ Object
taxIdNumber : String The Tax Id Number associated with the listing
442 443 444 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 442 def tax_id_number self.dig_for_string("taxIdNumber") end |
#tax_information ⇒ Object
taxInformation : Array Tax information associated with the Property
585 586 587 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 585 def tax_information self.dig_for_array("taxInformation") end |
#tax_roll_number ⇒ Object
taxRollNumber : String An identifier for a property within a given jurisdiction, such as a city or county, that can be taxed
90 91 92 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 90 def tax_roll_number self.dig_for_string("taxRollNumber") end |
#tax_year ⇒ Object
taxYear : Integer The year in which tax was calculated
449 450 451 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 449 def tax_year self.dig_for_integer("taxYear") end |
#team ⇒ Object
team : Hash
The team associated with the Listing
911 912 913 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 911 def team self.dig_for_hash("listingSummary", "team") end |
#three_quarter_bath ⇒ Object
threeQuarterBath : Integer Number of three quarter baths in the property
34 35 36 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 34 def three_quarter_bath self.dig_for_integer("threeQuarterBath") end |
#total_acres ⇒ Object
totalAcres : String
Total Acres of the property
855 856 857 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 855 def total_acres self.dig_for_string("listingSummary", "totalAcres") end |
#total_bath ⇒ Object
totalBath : Integer
Number of partial baths in the property
834 835 836 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 834 def total_bath self.dig_for_integer("listingSummary", "totalBath") end |
#total_expenses ⇒ Object
totalExpenses : Decimal The Total Expenses associated with the listing
456 457 458 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 456 def total_expenses self.dig_for_decimal("totalExpenses") end |
#total_rooms ⇒ Object
totalRooms : Integer Number of total rooms in the property
83 84 85 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 83 def total_rooms self.dig_for_integer("totalRooms") end |
#total_units ⇒ Object
totalUnits : Integer The Total Units associated with the listing
463 464 465 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 463 def total_units self.dig_for_integer("totalUnits") end |
#turning_radius ⇒ Object
turningRadius : String The available turning radius available in the industrial property. Turning radius is the size of smallest possible circular turn a vehicle is able to take
471 472 473 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 471 def turning_radius self.dig_for_string("turningRadius") end |
#video_count ⇒ Object
videoCount : Integer
Number of videos associated with listing
637 638 639 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 637 def video_count self.dig_for_integer("listingSummary", "videoCount") end |
#websites ⇒ Object
webSites : Array Collection of websites for the property
520 521 522 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 520 def websites self.dig_for_array("webSites") end |
#year_built ⇒ Object
yearBuilt : String The year in which the property was built
69 70 71 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 69 def year_built self.dig_for_integer("yearBuilt") end |
#year_renovated ⇒ Object
yearRenovated : String The year in which the property was last renovated
76 77 78 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 76 def year_renovated self.dig_for_integer("yearRenovated") end |
#zoning ⇒ Object
zoning : String Property in terms of permitted usage of land based on mapped zones by the authorities
97 98 99 |
# File 'lib/realogy/app/models/realogy/listing.rb', line 97 def zoning self.dig_for_string("zoning") end |