Class: TravelTimeAPI::Auth

Inherits:
Struct
  • Object
show all
Defined in:
lib/traveltime_api.rb

Overview

Class representing authentification data for TravelTime API.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#app_idObject

Returns the value of attribute app_id

Returns:

  • (Object)

    the current value of app_id



26
27
28
# File 'lib/traveltime_api.rb', line 26

def app_id
  @app_id
end

#app_keyObject

Returns the value of attribute app_key

Returns:

  • (Object)

    the current value of app_key



26
27
28
# File 'lib/traveltime_api.rb', line 26

def app_key
  @app_key
end

Instance Method Details

#to_hObject



27
28
29
# File 'lib/traveltime_api.rb', line 27

def to_h
  {:app_id => app_id, :app_key => app_key}
end