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


12592
12593
12594
# File 'Monkeybrains.rb', line 12592

def activityClass
  @activityClass
end

birthYearToybox::Lang::Number

Birth Year

Returns:

Since:

  • 1.0.0


12597
12598
12599
# File 'Monkeybrains.rb', line 12597

def birthYear
  @birthYear
end

genderToybox::Lang::Number

The Gender enum

Returns:

Since:

  • 1.0.0


12553
12554
12555
# File 'Monkeybrains.rb', line 12553

def gender
  @gender
end

heightToybox::Lang::Number

Height in centimeters (cm)

Returns:

Since:

  • 1.0.0


12558
12559
12560
# File 'Monkeybrains.rb', line 12558

def height
  @height
end

restingHeartRateToybox::Lang::Number

Heart rate in beats per minute (bpm)

Returns:

Since:

  • 1.0.0


12587
12588
12589
# File 'Monkeybrains.rb', line 12587

def restingHeartRate
  @restingHeartRate
end

runningStepLengthToybox::Lang::Number

Running step length in millimeters (mm)

Returns:

Since:

  • 1.0.0


12577
12578
12579
# File 'Monkeybrains.rb', line 12577

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


12572
12573
12574
# File 'Monkeybrains.rb', line 12572

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


12565
12566
12567
# File 'Monkeybrains.rb', line 12565

def wakeTime
  @wakeTime
end

walkingStepLengthToybox::Lang::Number

Walking step length in millimeters (mm)

Returns:

Since:

  • 1.0.0


12582
12583
12584
# File 'Monkeybrains.rb', line 12582

def walkingStepLength
  @walkingStepLength
end

weightToybox::Lang::Number

Weight in grams (g)

Returns:

Since:

  • 1.0.0


12547
12548
12549
# File 'Monkeybrains.rb', line 12547

def weight
  @weight
end