Class: Google::Apis::HealthV4::ActiveEnergyBurnedRollupValue
- Inherits:
-
Object
- Object
- Google::Apis::HealthV4::ActiveEnergyBurnedRollupValue
- 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
-
#kcal_sum ⇒ Float
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ActiveEnergyBurnedRollupValue
constructor
A new instance of ActiveEnergyBurnedRollupValue.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_sum ⇒ Float
Output only. Sum of the active energy burned in kilocalories.
Corresponds to the JSON property kcalSum
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 |