Class: Google::Apis::HealthV4::HeartRateRollupValue
- Inherits:
-
Object
- Object
- Google::Apis::HealthV4::HeartRateRollupValue
- 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
-
#beats_per_minute_avg ⇒ Float
The average heart rate value in the interval.
-
#beats_per_minute_max ⇒ Float
The maximum heart rate value in the interval.
-
#beats_per_minute_min ⇒ Float
The minimum heart rate value in the interval.
Instance Method Summary collapse
-
#initialize(**args) ⇒ HeartRateRollupValue
constructor
A new instance of HeartRateRollupValue.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ HeartRateRollupValue
Returns a new instance of HeartRateRollupValue.
1932 1933 1934 |
# File 'lib/google/apis/health_v4/classes.rb', line 1932 def initialize(**args) update!(**args) end |
Instance Attribute Details
#beats_per_minute_avg ⇒ Float
The average heart rate value in the interval.
Corresponds to the JSON property beatsPerMinuteAvg
1920 1921 1922 |
# File 'lib/google/apis/health_v4/classes.rb', line 1920 def beats_per_minute_avg @beats_per_minute_avg end |
#beats_per_minute_max ⇒ Float
The maximum heart rate value in the interval.
Corresponds to the JSON property beatsPerMinuteMax
1925 1926 1927 |
# File 'lib/google/apis/health_v4/classes.rb', line 1925 def beats_per_minute_max @beats_per_minute_max end |
#beats_per_minute_min ⇒ Float
The minimum heart rate value in the interval.
Corresponds to the JSON property beatsPerMinuteMin
1930 1931 1932 |
# File 'lib/google/apis/health_v4/classes.rb', line 1930 def beats_per_minute_min @beats_per_minute_min end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1937 1938 1939 1940 1941 |
# File 'lib/google/apis/health_v4/classes.rb', line 1937 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 |