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.



218
219
220
# File 'lib/google/apis/health_v4/classes.rb', line 218

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)


206
207
208
# File 'lib/google/apis/health_v4/classes.rb', line 206

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)


211
212
213
# File 'lib/google/apis/health_v4/classes.rb', line 211

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)


216
217
218
# File 'lib/google/apis/health_v4/classes.rb', line 216

def sum_in_peak_heart_zone
  @sum_in_peak_heart_zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



223
224
225
226
227
# File 'lib/google/apis/health_v4/classes.rb', line 223

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