Module: MartaApi::Utils
- Included in:
- Rest::Bus, Rest::Rail
- Defined in:
- lib/marta_api/utils.rb
Constant Summary collapse
- MARTA_API_ROOT =
ENV['MARTA_API_ROOT'] || 'http://developer.itsmarta.com'
- MARTA_API_KEY =
ENV['MARTA_API_KEY'] || 'test-api-key'
- API_KEY_SUFFIX =
'?apiKey=%s'
- GET_RAIL_SCHEDULE_ENDPOINT =
'/RealtimeTrain/RestServiceNextTrain/GetRealtimeArrivals'
- GET_ALL_BUS_SCHEDULES_ENDPOINT =
'/BRDRestService/RestBusRealTimeService/GetAllBus'
- GET_BUS_SCHEDULE_BY_ROUTE_ENDPOINT =
'/BRDRestService/RestBusRealTimeService/GetBusByRoute/%s'
Instance Method Summary collapse
Instance Method Details
#api_key_param ⇒ Object
12 13 14 |
# File 'lib/marta_api/utils.rb', line 12 def api_key_param (API_KEY_SUFFIX % MARTA_API_KEY) end |