class Frizzle::Vehicles

Public Class Methods

find(options={}) click to toggle source
# File lib/frizzle/vehicles.rb, line 5
def find(options={})
  fetch("/vehicles.json",
    :query => options )
end
find_by_agencies(agencies) click to toggle source
# File lib/frizzle/vehicles.rb, line 10
def find_by_agencies(agencies)
  fetch("/vehicles.json",
    :query => { :agencies => formatted_list(agencies) })
end
find_by_agencies_and_geo_area(agencies, geo_area_first, geo_area_second=nil) click to toggle source
# File lib/frizzle/vehicles.rb, line 23
def find_by_agencies_and_geo_area(agencies, geo_area_first, geo_area_second=nil)
  fetch("/vehicles.json",
    :query => {
      :agencies => formatted_list(agencies),
      :geo_area => formatted_geo_area(geo_area_first, geo_area_second)
    })
end
find_by_agencies_and_routes(agencies, routes) click to toggle source
# File lib/frizzle/vehicles.rb, line 15
def find_by_agencies_and_routes(agencies, routes)
  fetch("/vehicles.json",
    :query => {
      :agencies => formatted_list(agencies),
      :routes => formatted_list(routes)
    })
end
find_by_agencies_and_routes_and_geo_area(agencies, routes, geo_area_first, geo_area_second=nil) click to toggle source
# File lib/frizzle/vehicles.rb, line 31
def find_by_agencies_and_routes_and_geo_area(agencies, routes, geo_area_first, geo_area_second=nil)
  fetch("/vehicles.json",
      :query => {
        :agencies => formatted_list(agencies),
        :routes => formatted_list(routes),
        :geo_area => formatted_geo_area(geo_area_first, geo_area_second)
    })
end