Class: TravelTimeAPI::Auth
- Inherits:
-
Struct
- Object
- Struct
- TravelTimeAPI::Auth
- Defined in:
- lib/traveltime_api.rb
Overview
Class representing authentification data for TravelTime API.
Instance Attribute Summary collapse
-
#app_id ⇒ Object
Returns the value of attribute app_id.
-
#app_key ⇒ Object
Returns the value of attribute app_key.
Instance Method Summary collapse
Instance Attribute Details
#app_id ⇒ Object
Returns the value of attribute app_id
26 27 28 |
# File 'lib/traveltime_api.rb', line 26 def app_id @app_id end |
#app_key ⇒ Object
Returns the value of attribute app_key
26 27 28 |
# File 'lib/traveltime_api.rb', line 26 def app_key @app_key end |
Instance Method Details
#to_h ⇒ Object
27 28 29 |
# File 'lib/traveltime_api.rb', line 27 def to_h {:app_id => app_id, :app_key => app_key} end |