Class: Toybox::ActivityMonitor::History

Inherits:
Lang::Object show all

Overview

A class containing information about the user's activity history.

The fields in this class may return null. It is recommended to null check a value before using it. If the value is not available, an error indicating that the symbol was not found will be thrown.

Since:

  • 1.0.0

Instance Attribute Summary collapse

Method Summary

Methods inherited from Lang::Object

equals, hashCode, method, toString, weak

Instance Attribute Details

activeMinutesToybox::ActivityMonitor::ActiveMinutes

Number of active minutes.

Contains the moderate, vigorous, and total accumulated minutes for the day.

Returns:

Since:

  • 2.1.0

Supported Devices:

  • All CIQ 2.x devices


736
737
738
# File 'Monkeybrains.rb', line 736

def activeMinutes
  @activeMinutes
end

caloriesToybox::Lang::Number

The calories for the day in kilocalories (kCal).

Returns:

Since:

  • 1.0.0


694
695
696
# File 'Monkeybrains.rb', line 694

def calories
  @calories
end

distanceToybox::Lang::Number

The distance for the day in centimeters (cm).

Returns:

Since:

  • 1.0.0


699
700
701
# File 'Monkeybrains.rb', line 699

def distance
  @distance
end

floorsClimbedToybox::Lang::Number

The number of floors climbed for the day.

Returns:

Since:

  • 2.1.0

Supported Devices:

  • All CIQ 2.x devices except Approach S60 and Forerunner 735XT


715
716
717
# File 'Monkeybrains.rb', line 715

def floorsClimbed
  @floorsClimbed
end

floorsClimbedGoalToybox::Lang::Number

Floors climbed goal for the day.

Returns:

Since:

  • 2.1.0

Supported Devices:

  • All CIQ 2.x devices except Approach S60 and Forerunner 735XT


727
728
729
# File 'Monkeybrains.rb', line 727

def floorsClimbedGoal
  @floorsClimbedGoal
end

floorsDescendedToybox::Lang::Number

The number of floors descended for the day.

Returns:

Since:

  • 2.1.0

Supported Devices:

  • All CIQ 2.x devices except Approach S60 and Forerunner 735XT


721
722
723
# File 'Monkeybrains.rb', line 721

def floorsDescended
  @floorsDescended
end

startOfDayToybox::Time::Moment

A Moment object representing the start time of the day recorded by this History object

Returns:

Since:

  • 1.0.0


689
690
691
# File 'Monkeybrains.rb', line 689

def startOfDay
  @startOfDay
end

stepGoalToybox::Lang::Number

The step goal for the day in number of steps.

Returns:

Since:

  • 1.0.0


709
710
711
# File 'Monkeybrains.rb', line 709

def stepGoal
  @stepGoal
end

stepsToybox::Lang::Number

The step count for the day in number of steps.

Returns:

Since:

  • 1.0.0


704
705
706
# File 'Monkeybrains.rb', line 704

def steps
  @steps
end