Class: Inthegra::Client
- Inherits:
-
Object
- Object
- Inthegra::Client
- Includes:
- BusStops, Lines, Vehicles, Connection, Request
- Defined in:
- lib/inthegra/client.rb,
lib/inthegra/client/lines.rb,
lib/inthegra/client/vehicles.rb,
lib/inthegra/client/bus_stops.rb
Defined Under Namespace
Modules: BusStops, Lines, Vehicles
Instance Method Summary collapse
-
#authenticate ⇒ Object
Authenticate the client and set the auth_token.
-
#initialize(options = {}) ⇒ Client
constructor
Creates a new Client.
Methods included from Vehicles
Methods included from BusStops
#bus_stops, #bus_stops_by_line, #bus_stops_search
Methods included from Lines
Methods included from Request
Constructor Details
#initialize(options = {}) ⇒ Client
Creates a new Client
17 18 19 20 21 22 23 |
# File 'lib/inthegra/client.rb', line 17 def initialize(={}) = Inthegra..merge() Configuration::VALID_OPTIONS.each do |key| send("#{key}=", [key]) end end |