class Frizzle::Agencies
Public Class Methods
all()
click to toggle source
# File lib/frizzle/agencies.rb, line 5 def all fetch("/agencies.json") end
find(options={})
click to toggle source
# File lib/frizzle/agencies.rb, line 9 def find(options={}) fetch("/agencies.json", :query => options ) end
find_by_geo_area(geo_area_first, geo_area_second=nil)
click to toggle source
# File lib/frizzle/agencies.rb, line 19 def find_by_geo_area(geo_area_first, geo_area_second=nil) fetch("/agencies.json", :query => { :geo_area => formatted_geo_area(geo_area_first, geo_area_second) }) end
find_by_id(agencies)
click to toggle source
# File lib/frizzle/agencies.rb, line 14 def find_by_id(agencies) fetch("/agencies.json", :query => { :agencies => formatted_list(agencies) }) end
find_by_id_and_geo_area(agencies, geo_area_first, geo_area_second=nil)
click to toggle source
# File lib/frizzle/agencies.rb, line 24 def find_by_id_and_geo_area(agencies, geo_area_first, geo_area_second=nil) fetch("/agencies.json", :query => { :agencies => formatted_list(agencies), :geo_area => formatted_geo_area(geo_area_first, geo_area_second) }) end