Class: Google::Apis::HealthV4::TotalCaloriesRollupValue

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 user's total calories.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_sumFloat

Sum of the total calories in kilocalories. Corresponds to the JSON property kcalSum

Returns:

  • (Float)


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