Class: TFLJourneyPlanner::Client

Inherits:
Object
  • Object
show all
Includes:
HTTParty, Results
Defined in:
lib/journey_planner.rb

Constant Summary

Constants included from Results

Results::BASE_URI

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options)
  @app_key = options[:app_key]
  @app_id = options[:app_id]
end

Instance Attribute Details

#app_idObject (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_keyObject (readonly)

Returns the value of attribute app_key.



17
18
19
# File 'lib/journey_planner.rb', line 17

def app_key
  @app_key
end