Class: Homeflow::API::Location
- Defined in:
- lib/homeflow/api/location.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#properties ⇒ Object
returns a search object pre build withe the correct place id.
Methods inherited from Resource
delete, find, is_resource, resource_uri
Methods included from Queryable
Class Method Details
.find_by_county_id_and_location_id(county_id, location_id) ⇒ Object
13 14 15 |
# File 'lib/homeflow/api/location.rb', line 13 def self.find_by_county_id_and_location_id(county_id, location_id) Request.run_for(Homeflow::API::ResourceIdentifier.new("/counties/#{county_id}/locations/#{location_id}")) end |
Instance Method Details
#properties ⇒ Object
returns a search object pre build withe the correct place id
9 10 11 |
# File 'lib/homeflow/api/location.rb', line 9 def properties Property.where(:place => {:id => place_id}) end |