Class: RunKeeper::User
Instance Attribute Summary collapse
-
#background_activities ⇒ Object
Returns the value of attribute background_activities.
-
#diabetes ⇒ Object
Returns the value of attribute diabetes.
-
#fitness_activities ⇒ Object
Returns the value of attribute fitness_activities.
-
#general_measurements ⇒ Object
Returns the value of attribute general_measurements.
-
#nutrition ⇒ Object
Returns the value of attribute nutrition.
-
#profile ⇒ Object
Returns the value of attribute profile.
-
#records ⇒ Object
Returns the value of attribute records.
-
#settings ⇒ Object
Returns the value of attribute settings.
-
#sleep ⇒ Object
Returns the value of attribute sleep.
-
#strength_training_activities ⇒ Object
Returns the value of attribute strength_training_activities.
-
#team ⇒ Object
Returns the value of attribute team.
-
#userid ⇒ Object
Returns the value of attribute userid.
-
#weight ⇒ Object
Returns the value of attribute weight.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ User
constructor
A new instance of User.
Constructor Details
#initialize(attributes = {}) ⇒ User
Returns a new instance of User.
6 7 8 9 |
# File 'lib/run_keeper/user.rb', line 6 def initialize attributes = {} super attributes self.userid = attributes['userID'] if attributes['userID'] end |
Instance Attribute Details
#background_activities ⇒ Object
Returns the value of attribute background_activities.
3 4 5 |
# File 'lib/run_keeper/user.rb', line 3 def background_activities @background_activities end |
#diabetes ⇒ Object
Returns the value of attribute diabetes.
3 4 5 |
# File 'lib/run_keeper/user.rb', line 3 def diabetes @diabetes end |
#fitness_activities ⇒ Object
Returns the value of attribute fitness_activities.
3 4 5 |
# File 'lib/run_keeper/user.rb', line 3 def fitness_activities @fitness_activities end |
#general_measurements ⇒ Object
Returns the value of attribute general_measurements.
3 4 5 |
# File 'lib/run_keeper/user.rb', line 3 def general_measurements @general_measurements end |
#nutrition ⇒ Object
Returns the value of attribute nutrition.
3 4 5 |
# File 'lib/run_keeper/user.rb', line 3 def nutrition @nutrition end |
#profile ⇒ Object
Returns the value of attribute profile.
3 4 5 |
# File 'lib/run_keeper/user.rb', line 3 def profile @profile end |
#records ⇒ Object
Returns the value of attribute records.
3 4 5 |
# File 'lib/run_keeper/user.rb', line 3 def records @records end |
#settings ⇒ Object
Returns the value of attribute settings.
3 4 5 |
# File 'lib/run_keeper/user.rb', line 3 def settings @settings end |
#sleep ⇒ Object
Returns the value of attribute sleep.
3 4 5 |
# File 'lib/run_keeper/user.rb', line 3 def sleep @sleep end |
#strength_training_activities ⇒ Object
Returns the value of attribute strength_training_activities.
3 4 5 |
# File 'lib/run_keeper/user.rb', line 3 def strength_training_activities @strength_training_activities end |
#team ⇒ Object
Returns the value of attribute team.
3 4 5 |
# File 'lib/run_keeper/user.rb', line 3 def team @team end |
#userid ⇒ Object
Returns the value of attribute userid.
4 5 6 |
# File 'lib/run_keeper/user.rb', line 4 def userid @userid end |
#weight ⇒ Object
Returns the value of attribute weight.
3 4 5 |
# File 'lib/run_keeper/user.rb', line 3 def weight @weight end |