Class: Homeflow::API::Location

Inherits:
Resource
  • Object
show all
Defined in:
lib/homeflow/api/location.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Resource

delete, find, is_resource, resource_uri

Methods included from Queryable

included

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

#propertiesObject

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