Class: StravaApi::Bike

Inherits:
HashBasedStore show all
Defined in:
lib/strava-api/bike.rb

Constant Summary collapse

ATTRIBUTE_MAP =
{'name' => :name, 'id' => :id }

Instance Method Summary collapse

Methods inherited from HashBasedStore

#[], #id, #merge, #method_missing, #to_s

Constructor Details

#initialize(connection, options = {}) ⇒ Bike

Returns a new instance of Bike.



4
5
6
# File 'lib/strava-api/bike.rb', line 4

def initialize(connection, options = {})
  super(connection, ATTRIBUTE_MAP, {}, options)
end

Dynamic Method Handling

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