Class: Toybox::ActivityMonitor::HeartRateSample

Inherits:
Lang::Object
  • Object
show all

Overview

A class containing heart rate data at a given time.

Since:

  • 1.2.2

Supported Devices:

  • D2 Bravo Titanium

  • fenix 3 HR

  • fenix 5/S/X

  • fenix Chronos

  • Forerunner 235

  • Forerunner 735XT

  • Forerunner 935

  • vivoactive HR

Instance Attribute Summary collapse

Method Summary

Methods inherited from Lang::Object

equals, hashCode, method, toString, weak

Instance Attribute Details

heartRateToybox::Lang::Number

Heart rate in beats per minute (bpm).

Before using heart rate information, check for INVALID_HR_SAMPLE to be sure data is available.

Returns:

Since:

  • 1.2.2


758
759
760
# File 'Monkeybrains.rb', line 758

def heartRate
  @heartRate
end

whenToybox::Time::Moment

The time of the heart rate sample

Returns:

Since:

  • 1.2.2


763
764
765
# File 'Monkeybrains.rb', line 763

def when
  @when
end