Class: MartaApi::Client

Inherits:
Object
  • Object
show all
Includes:
Rest::API
Defined in:
lib/marta_api/client.rb

Constant Summary

Constants included from Utils

Utils::API_KEY_SUFFIX, Utils::GET_ALL_BUS_SCHEDULES_ENDPOINT, Utils::GET_BUS_SCHEDULE_BY_ROUTE_ENDPOINT, Utils::GET_RAIL_SCHEDULE_ENDPOINT, Utils::MARTA_API_KEY, Utils::MARTA_API_ROOT

Instance Method Summary collapse

Methods included from Rest::Bus

#get_bus_schedule, #get_bus_schedule_by_route, #handle_response

Methods included from Utils

#api_key_param

Methods included from Rest::Rail

#get_rail_schedule, #handle_response

Constructor Details

#initializeClient

Returns a new instance of Client.



9
10
11
# File 'lib/marta_api/client.rb', line 9

def initialize
  Dotenv.load
end