Class: Google::Apis::HealthV4::HeartRateRollupValue

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/health_v4/classes.rb,
lib/google/apis/health_v4/representations.rb,
lib/google/apis/health_v4/representations.rb

Overview

Represents the result of the rollup of the heart rate data type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ HeartRateRollupValue

Returns a new instance of HeartRateRollupValue.



2779
2780
2781
# File 'lib/google/apis/health_v4/classes.rb', line 2779

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#beats_per_minute_avgFloat

The average heart rate value in the interval. Corresponds to the JSON property beatsPerMinuteAvg

Returns:

  • (Float)


2767
2768
2769
# File 'lib/google/apis/health_v4/classes.rb', line 2767

def beats_per_minute_avg
  @beats_per_minute_avg
end

#beats_per_minute_maxFloat

The maximum heart rate value in the interval. Corresponds to the JSON property beatsPerMinuteMax

Returns:

  • (Float)


2772
2773
2774
# File 'lib/google/apis/health_v4/classes.rb', line 2772

def beats_per_minute_max
  @beats_per_minute_max
end

#beats_per_minute_minFloat

The minimum heart rate value in the interval. Corresponds to the JSON property beatsPerMinuteMin

Returns:

  • (Float)


2777
2778
2779
# File 'lib/google/apis/health_v4/classes.rb', line 2777

def beats_per_minute_min
  @beats_per_minute_min
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2784
2785
2786
2787
2788
# File 'lib/google/apis/health_v4/classes.rb', line 2784

def update!(**args)
  @beats_per_minute_avg = args[:beats_per_minute_avg] if args.key?(:beats_per_minute_avg)
  @beats_per_minute_max = args[:beats_per_minute_max] if args.key?(:beats_per_minute_max)
  @beats_per_minute_min = args[:beats_per_minute_min] if args.key?(:beats_per_minute_min)
end