Class: Google::Apis::HealthV4::TimeInHeartRateZones
- Inherits:
-
Object
- Object
- Google::Apis::HealthV4::TimeInHeartRateZones
- 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
Time spent in each heart rate zone.
Instance Attribute Summary collapse
-
#light_time ⇒ String
Optional.
-
#moderate_time ⇒ String
Optional.
-
#peak_time ⇒ String
Optional.
-
#vigorous_time ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TimeInHeartRateZones
constructor
A new instance of TimeInHeartRateZones.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TimeInHeartRateZones
Returns a new instance of TimeInHeartRateZones.
5710 5711 5712 |
# File 'lib/google/apis/health_v4/classes.rb', line 5710 def initialize(**args) update!(**args) end |
Instance Attribute Details
#light_time ⇒ String
Optional. Time spent in light heart rate zone.
Corresponds to the JSON property lightTime
5693 5694 5695 |
# File 'lib/google/apis/health_v4/classes.rb', line 5693 def light_time @light_time end |
#moderate_time ⇒ String
Optional. Time spent in moderate heart rate zone.
Corresponds to the JSON property moderateTime
5698 5699 5700 |
# File 'lib/google/apis/health_v4/classes.rb', line 5698 def moderate_time @moderate_time end |
#peak_time ⇒ String
Optional. Time spent in peak heart rate zone.
Corresponds to the JSON property peakTime
5703 5704 5705 |
# File 'lib/google/apis/health_v4/classes.rb', line 5703 def peak_time @peak_time end |
#vigorous_time ⇒ String
Optional. Time spent in vigorous heart rate zone.
Corresponds to the JSON property vigorousTime
5708 5709 5710 |
# File 'lib/google/apis/health_v4/classes.rb', line 5708 def vigorous_time @vigorous_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5715 5716 5717 5718 5719 5720 |
# File 'lib/google/apis/health_v4/classes.rb', line 5715 def update!(**args) @light_time = args[:light_time] if args.key?(:light_time) @moderate_time = args[:moderate_time] if args.key?(:moderate_time) @peak_time = args[:peak_time] if args.key?(:peak_time) @vigorous_time = args[:vigorous_time] if args.key?(:vigorous_time) end |