Class: Google::Apis::HealthV4::TotalCaloriesRollupValue
- Inherits:
-
Object
- Object
- Google::Apis::HealthV4::TotalCaloriesRollupValue
- 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 user's total calories.
Instance Attribute Summary collapse
-
#kcal_sum ⇒ Float
Sum of the total calories in kilocalories.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TotalCaloriesRollupValue
constructor
A new instance of TotalCaloriesRollupValue.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TotalCaloriesRollupValue
Returns a new instance of TotalCaloriesRollupValue.
4271 4272 4273 |
# File 'lib/google/apis/health_v4/classes.rb', line 4271 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kcal_sum ⇒ Float
Sum of the total calories in kilocalories.
Corresponds to the JSON property kcalSum
4269 4270 4271 |
# File 'lib/google/apis/health_v4/classes.rb', line 4269 def kcal_sum @kcal_sum end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4276 4277 4278 |
# File 'lib/google/apis/health_v4/classes.rb', line 4276 def update!(**args) @kcal_sum = args[:kcal_sum] if args.key?(:kcal_sum) end |