Class: Google::Apis::HealthV4::ActiveEnergyBurnedRollupValue

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 active energy burned.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ActiveEnergyBurnedRollupValue

Returns a new instance of ActiveEnergyBurnedRollupValue.



59
60
61
# File 'lib/google/apis/health_v4/classes.rb', line 59

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#kcal_sumFloat

Output only. Sum of the active energy burned in kilocalories. Corresponds to the JSON property kcalSum

Returns:

  • (Float)


57
58
59
# File 'lib/google/apis/health_v4/classes.rb', line 57

def kcal_sum
  @kcal_sum
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



64
65
66
# File 'lib/google/apis/health_v4/classes.rb', line 64

def update!(**args)
  @kcal_sum = args[:kcal_sum] if args.key?(:kcal_sum)
end