Class: Google::Apis::HealthV4::ActiveZoneMinutesRollupValue
- Inherits:
-
Object
- Object
- Google::Apis::HealthV4::ActiveZoneMinutesRollupValue
- 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 active zone minutes data type.
Instance Attribute Summary collapse
-
#sum_in_cardio_heart_zone ⇒ Fixnum
Active zone minutes in
HeartRateZone.CARDIO. -
#sum_in_fat_burn_heart_zone ⇒ Fixnum
Active zone minutes in
HeartRateZone.FAT_BURN. -
#sum_in_peak_heart_zone ⇒ Fixnum
Active zone minutes in
HeartRateZone.PEAK.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ActiveZoneMinutesRollupValue
constructor
A new instance of ActiveZoneMinutesRollupValue.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ActiveZoneMinutesRollupValue
Returns a new instance of ActiveZoneMinutesRollupValue.
174 175 176 |
# File 'lib/google/apis/health_v4/classes.rb', line 174 def initialize(**args) update!(**args) end |
Instance Attribute Details
#sum_in_cardio_heart_zone ⇒ Fixnum
Active zone minutes in HeartRateZone.CARDIO.
Corresponds to the JSON property sumInCardioHeartZone
162 163 164 |
# File 'lib/google/apis/health_v4/classes.rb', line 162 def sum_in_cardio_heart_zone @sum_in_cardio_heart_zone end |
#sum_in_fat_burn_heart_zone ⇒ Fixnum
Active zone minutes in HeartRateZone.FAT_BURN.
Corresponds to the JSON property sumInFatBurnHeartZone
167 168 169 |
# File 'lib/google/apis/health_v4/classes.rb', line 167 def sum_in_fat_burn_heart_zone @sum_in_fat_burn_heart_zone end |
#sum_in_peak_heart_zone ⇒ Fixnum
Active zone minutes in HeartRateZone.PEAK.
Corresponds to the JSON property sumInPeakHeartZone
172 173 174 |
# File 'lib/google/apis/health_v4/classes.rb', line 172 def sum_in_peak_heart_zone @sum_in_peak_heart_zone end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
179 180 181 182 183 |
# File 'lib/google/apis/health_v4/classes.rb', line 179 def update!(**args) @sum_in_cardio_heart_zone = args[:sum_in_cardio_heart_zone] if args.key?(:sum_in_cardio_heart_zone) @sum_in_fat_burn_heart_zone = args[:sum_in_fat_burn_heart_zone] if args.key?(:sum_in_fat_burn_heart_zone) @sum_in_peak_heart_zone = args[:sum_in_peak_heart_zone] if args.key?(:sum_in_peak_heart_zone) end |