Class: RunKeeper::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/run_keeper/base.rb

Direct Known Subclasses

Activity, Profile, User

Instance Method Summary collapse

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