Class: Google::Apis::HealthV4::ActiveZoneMinutesRollupValue

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 active zone minutes data type.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_zoneFixnum

Active zone minutes in HeartRateZone.CARDIO. Corresponds to the JSON property sumInCardioHeartZone

Returns:

  • (Fixnum)


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_zoneFixnum

Active zone minutes in HeartRateZone.FAT_BURN. Corresponds to the JSON property sumInFatBurnHeartZone

Returns:

  • (Fixnum)


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_zoneFixnum

Active zone minutes in HeartRateZone.PEAK. Corresponds to the JSON property sumInPeakHeartZone

Returns:

  • (Fixnum)


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