Class: RunKeeper::User

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_activitiesObject

Returns the value of attribute background_activities.



3
4
5
# File 'lib/run_keeper/user.rb', line 3

def background_activities
  @background_activities
end

#diabetesObject

Returns the value of attribute diabetes.



3
4
5
# File 'lib/run_keeper/user.rb', line 3

def diabetes
  @diabetes
end

#fitness_activitiesObject

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_measurementsObject

Returns the value of attribute general_measurements.



3
4
5
# File 'lib/run_keeper/user.rb', line 3

def general_measurements
  @general_measurements
end

#nutritionObject

Returns the value of attribute nutrition.



3
4
5
# File 'lib/run_keeper/user.rb', line 3

def nutrition
  @nutrition
end

#profileObject

Returns the value of attribute profile.



3
4
5
# File 'lib/run_keeper/user.rb', line 3

def profile
  @profile
end

#recordsObject

Returns the value of attribute records.



3
4
5
# File 'lib/run_keeper/user.rb', line 3

def records
  @records
end

#settingsObject

Returns the value of attribute settings.



3
4
5
# File 'lib/run_keeper/user.rb', line 3

def settings
  @settings
end

#sleepObject

Returns the value of attribute sleep.



3
4
5
# File 'lib/run_keeper/user.rb', line 3

def sleep
  @sleep
end

#strength_training_activitiesObject

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

#teamObject

Returns the value of attribute team.



3
4
5
# File 'lib/run_keeper/user.rb', line 3

def team
  @team
end

#useridObject

Returns the value of attribute userid.



4
5
6
# File 'lib/run_keeper/user.rb', line 4

def userid
  @userid
end

#weightObject

Returns the value of attribute weight.



3
4
5
# File 'lib/run_keeper/user.rb', line 3

def weight
  @weight
end