class Frizzle::Segments
Public Class Methods
find(options={})
click to toggle source
# File lib/frizzle/segments.rb, line 5 def find(options={}) fetch("/segments.json", :query => options ) end
find_by_agencies(agencies)
click to toggle source
# File lib/frizzle/segments.rb, line 10 def find_by_agencies(agencies) fetch("/segments.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/segments.rb, line 23 def find_by_agencies_and_geo_area(agencies, geo_area_first, geo_area_second=nil) fetch("/segments.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/segments.rb, line 15 def find_by_agencies_and_routes(agencies, routes) fetch("/segments.json", :query => { :agencies => formatted_list(agencies), :routes => formatted_list(routes) }) end