Class: GtfsEngine::TransfersController
Instance Method Summary
collapse
#filter, #index, #show
#data, #data_cache, #param_is_data_set_name?
Instance Method Details
#from ⇒ Object
10
11
12
13
|
# File 'app/controllers/gtfs_engine/transfers_controller.rb', line 10
def from
@transfers = collection.where(from_stop_id: params[:stop_id])
respond_with(@transfers)
end
|
#from_to ⇒ Object
20
21
22
23
24
|
# File 'app/controllers/gtfs_engine/transfers_controller.rb', line 20
def from_to
@transfer = collection.find_by(from_stop_id: params[:from_id],
to_stop_id: params[:to_id])
respond_with(@transfer)
end
|
#to ⇒ Object
15
16
17
18
|
# File 'app/controllers/gtfs_engine/transfers_controller.rb', line 15
def to
@transfers = collection.where(to_stop_id: params[:stop_id])
respond_with(@transfers)
end
|