Class: StravaApi::Streams

Inherits:
HashBasedStore show all
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

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, options = {})
  super(connection, ATTRIBUTE_MAP, NESTED_CLASS_MAP, options)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class StravaApi::HashBasedStore