Class: StravaApi::Streams
- Inherits:
-
HashBasedStore
- Object
- HashBasedStore
- StravaApi::Streams
- Defined in:
- lib/strava-api/streams.rb
Constant Summary collapse
- ATTRIBUTE_MAP =
{ "altitude" => :altitude, "cadence" => :cadence, "distance" => :distance, "heartrate" => :heartrate, "latlng" => :latlng, "time" => :time, "watts" => :watts, "watts_calc" => :watts_calc }
- NESTED_CLASS_MAP =
{}
Instance Method Summary collapse
-
#initialize(connection, options = {}) ⇒ Streams
constructor
A new instance of Streams.
Methods inherited from HashBasedStore
#[], #id, #merge, #method_missing, #to_s
Constructor Details
#initialize(connection, options = {}) ⇒ Streams
Returns a new instance of Streams.
17 18 19 |
# File 'lib/strava-api/streams.rb', line 17 def initialize(connection, = {}) super(connection, ATTRIBUTE_MAP, NESTED_CLASS_MAP, ) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class StravaApi::HashBasedStore