Class: Aucklandia::Client
- Inherits:
-
Object
- Object
- Aucklandia::Client
- Includes:
- CalendarDates, Calendars, Notifications, ParkingLocations, Routes, ScheduledWorks, Shapes, StopTimes, Stops, Trips, VehiclePositions, Versions, Requestable
- Defined in:
- lib/aucklandia/client.rb
Constant Summary
Constants included from CalendarDates
Aucklandia::CalendarDates::CALENDAR_DATES_ENDPOINT
Constants included from Calendars
Aucklandia::Calendars::CALENDARS_ENDPOINT
Constants included from ParkingLocations
ParkingLocations::PARKING_LOCATIONS_ENDPOINT
Constants included from Notifications
Notifications::NOTIFICATIONS_ENDPOINT
Constants included from StopTimes
StopTimes::STOP_TIMES_ENDPOINT
Constants included from ScheduledWorks
ScheduledWorks::SCHEDULED_WORKS_ENDPOINT
Constants included from Shapes
Constants included from Stops
Constants included from Versions
Constants included from VehiclePositions
VehiclePositions::VEHICLE_POSITIONS_ENDPOINT
Constants included from Trips
Constants included from Routes
Instance Attribute Summary collapse
-
#authorization_key ⇒ Object
readonly
Returns the value of attribute authorization_key.
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(authorization_key) ⇒ Client
constructor
A new instance of Client.
Methods included from Requestable
Methods included from CalendarDates
Methods included from Calendars
Methods included from ParkingLocations
Methods included from Notifications
#get_notifications, #get_notifications_by_category, #get_notifications_by_stop_id
Methods included from StopTimes
Methods included from ScheduledWorks
Methods included from Shapes
Methods included from Stops
#get_stops, #get_stops_by_trip_id
Methods included from Versions
Methods included from VehiclePositions
#get_vehicle_position_by_vehicle_id, #get_vehicle_positions, #get_vehicle_positions_by_route_id
Methods included from Trips
#get_trips, #get_trips_by_route
Methods included from Routes
#get_route_by_id, #get_routes, #get_routes_by_short_name
Constructor Details
#initialize(authorization_key) ⇒ Client
Returns a new instance of Client.
19 20 21 |
# File 'lib/aucklandia/client.rb', line 19 def initialize() @authorization_key = end |
Instance Attribute Details
#authorization_key ⇒ Object (readonly)
Returns the value of attribute authorization_key.
18 19 20 |
# File 'lib/aucklandia/client.rb', line 18 def @authorization_key end |
Instance Method Details
#headers ⇒ Object
23 24 25 26 27 |
# File 'lib/aucklandia/client.rb', line 23 def headers { "Ocp-Apim-Subscription-Key" => @authorization_key } end |