Class: RunKeeper::Base
- Inherits:
-
Object
- Object
- RunKeeper::Base
- Defined in:
- lib/run_keeper/base.rb
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(attributes = {}) ⇒ Base
Returns a new instance of Base.
3 4 5 6 7 |
# File 'lib/run_keeper/base.rb', line 3 def initialize attributes = {} attributes.each do |attribute, value| send :"#{attribute}=", value if respond_to? :"#{attribute}=" end end |