Class: Toybox::UserProfile::Profile

Inherits:
Lang::Object show all

Overview

The profile object contains user information.

Since:

  • 1.0.0

Instance Attribute Summary collapse

Method Summary

Methods inherited from Lang::Object

equals, hashCode, method, toString, weak

Instance Attribute Details

activityClassToybox::Lang::Number

Activity level from 0-100;

Returns:

Since:

  • 1.0.0


11264
11265
11266
# File 'Monkeybrains.rb', line 11264

def activityClass
  @activityClass
end

birthYearToybox::Lang::Number

Birth Year

Returns:

Since:

  • 1.0.0


11269
11270
11271
# File 'Monkeybrains.rb', line 11269

def birthYear
  @birthYear
end

genderToybox::Lang::Number

The Gender enum

Returns:

Since:

  • 1.0.0


11225
11226
11227
# File 'Monkeybrains.rb', line 11225

def gender
  @gender
end

heightToybox::Lang::Number

Height in centimeters (cm)

Returns:

Since:

  • 1.0.0


11230
11231
11232
# File 'Monkeybrains.rb', line 11230

def height
  @height
end

restingHeartRateToybox::Lang::Number

Heart rate in beats per minute (bpm)

Returns:

Since:

  • 1.0.0


11259
11260
11261
# File 'Monkeybrains.rb', line 11259

def restingHeartRate
  @restingHeartRate
end

runningStepLengthToybox::Lang::Number

Running step length in millimeters (mm)

Returns:

Since:

  • 1.0.0


11249
11250
11251
# File 'Monkeybrains.rb', line 11249

def runningStepLength
  @runningStepLength
end

sleepTimeToybox::Time::Duration

Typical sleep time as configured by the user.

Stored as a Duration past local midnight.

Returns:

Since:

  • 1.0.0


11244
11245
11246
# File 'Monkeybrains.rb', line 11244

def sleepTime
  @sleepTime
end

wakeTimeToybox::Time::Duration

Typical wake time as configured by the user.

Stored as a Duration past local midnight.

Returns:

Since:

  • 1.0.0


11237
11238
11239
# File 'Monkeybrains.rb', line 11237

def wakeTime
  @wakeTime
end

walkingStepLengthToybox::Lang::Number

Walking step length in millimeters (mm)

Returns:

Since:

  • 1.0.0


11254
11255
11256
# File 'Monkeybrains.rb', line 11254

def walkingStepLength
  @walkingStepLength
end

weightToybox::Lang::Number

Weight in grams (g)

Returns:

Since:

  • 1.0.0


11219
11220
11221
# File 'Monkeybrains.rb', line 11219

def weight
  @weight
end