Class: Rubillow::PropertyDetails
- Inherits:
-
Object
- Object
- Rubillow::PropertyDetails
- Defined in:
- lib/rubillow/property_details.rb
Overview
Interface for the Property Details API.
Read the more about this API at: http://www.zillow.com/howto/api/PropertyDetailsAPIOverview.htm
Class Method Summary collapse
-
.deep_comps(options = {}) ⇒ Models::DeepComps
Retrieve extended details for property and its comps.
-
.deep_search_results(options = {}) ⇒ Models::DeepSearchResult
Retrieve extended details for a property.
-
.updated_property_details(options = {}) ⇒ Models::UpdatedPropertyDetails
Retrieve updated property facts for a given property.
Class Method Details
.deep_comps(options = {}) ⇒ Models::DeepComps
Retrieve extended details for property and its comps.
Read more at: http://www.zillow.com/howto/api/GetDeepComps.htm.
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'lib/rubillow/property_details.rb', line 62 def self.deep_comps( = {}) = { :zws_id => Rubillow.configuration.zwsid, :zpid => nil, :count => nil, :rentzestimate => false, }.merge!() if [:zpid].nil? raise ArgumentError, "The zpid option is required" end if [:count].nil? raise ArgumentError, "The count option is required" end Models::DeepComps.new(Rubillow::Request.get("GetDeepComps", )) end |
.deep_search_results(options = {}) ⇒ Models::DeepSearchResult
Retrieve extended details for a property.
Read more at: http://www.zillow.com/howto/api/GetDeepSearchResults.htm.
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/rubillow/property_details.rb', line 24 def self.deep_search_results( = {}) = { :zws_id => Rubillow.configuration.zwsid, :address => nil, :citystatezip => nil, :rentzestimate => false, }.merge!() if [:address].nil? raise ArgumentError, "The address option is required" end if [:citystatezip].nil? raise ArgumentError, "The citystatezip option is required" end Models::DeepSearchResult.new(Rubillow::Request.get("GetDeepSearchResults", )) end |
.updated_property_details(options = {}) ⇒ Models::UpdatedPropertyDetails
Retrieve updated property facts for a given property.
Read more at: http://www.zillow.com/howto/api/GetUpdatedPropertyDetails.htm.
98 99 100 101 102 103 104 105 106 107 108 109 |
# File 'lib/rubillow/property_details.rb', line 98 def self.updated_property_details( = {}) = { :zws_id => Rubillow.configuration.zwsid, :zpid => nil, }.merge!() if [:zpid].nil? raise ArgumentError, "The zpid option is required" end Models::UpdatedPropertyDetails.new(Rubillow::Request.get("GetUpdatedPropertyDetails", )) end |