Class: TFLJourneyPlanner::Client
- Inherits:
-
Object
- Object
- TFLJourneyPlanner::Client
- Includes:
- HTTParty, Results
- Defined in:
- lib/journey_planner.rb
Constant Summary
Constants included from Results
Instance Attribute Summary collapse
-
#app_id ⇒ Object
readonly
Returns the value of attribute app_id.
-
#app_key ⇒ Object
readonly
Returns the value of attribute app_key.
Instance Method Summary collapse
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
Methods included from Results
#disambiguate, #get_journeys, #process_journeys_from
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
19 20 21 22 |
# File 'lib/journey_planner.rb', line 19 def initialize() @app_key = [:app_key] @app_id = [:app_id] end |
Instance Attribute Details
#app_id ⇒ Object (readonly)
Returns the value of attribute app_id.
17 18 19 |
# File 'lib/journey_planner.rb', line 17 def app_id @app_id end |
#app_key ⇒ Object (readonly)
Returns the value of attribute app_key.
17 18 19 |
# File 'lib/journey_planner.rb', line 17 def app_key @app_key end |