Sha256: 0f231076af54f3a07e3b834b28feac31f38e4b2a34759863e198aaafe0c5026d

Contents?: true

Size: 439 Bytes

Versions: 20

Compression:

Stored size: 439 Bytes

Contents

module Homeflow
  module API
   class Location < Resource

    is_resource :locations


    #returns a search object pre build withe the correct place id
    def properties
      Property.where(:place => {:id => place_id})
    end

    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

   end
 end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
homeflow_api-1.0.3 lib/homeflow/api/location.rb
homeflow_api-1.0.2 lib/homeflow/api/location.rb
homeflow_api-1.0.1 lib/homeflow/api/location.rb
homeflow_api-1.0.0 lib/homeflow/api/location.rb
homeflow_api-0.17.15 lib/homeflow/api/location.rb
homeflow_api-0.17.14 lib/homeflow/api/location.rb
homeflow_api-0.17.13 lib/homeflow/api/location.rb
homeflow_api-0.17.12 lib/homeflow/api/location.rb
homeflow_api-0.17.11 lib/homeflow/api/location.rb
homeflow_api-0.17.9 lib/homeflow/api/location.rb
homeflow_api-0.17.8 lib/homeflow/api/location.rb
homeflow_api-0.17.6 lib/homeflow/api/location.rb
homeflow_api-0.17.5 lib/homeflow/api/location.rb
homeflow_api-0.17.4 lib/homeflow/api/location.rb
homeflow_api-0.17.3 lib/homeflow/api/location.rb
homeflow_api-0.17.1 lib/homeflow/api/location.rb
homeflow_api-0.17.0 lib/homeflow/api/location.rb
homeflow_api-0.16.0 lib/homeflow/api/location.rb
homeflow_api-0.14.4 lib/homeflow/api/location.rb
homeflow_api-0.14.3 lib/homeflow/api/location.rb