Class: Google::Apis::HealthV4::NutrientQuantityRollup
- Inherits:
-
Object
- Object
- Google::Apis::HealthV4::NutrientQuantityRollup
- 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
Nutrient quantity rollup.
Instance Attribute Summary collapse
-
#nutrient ⇒ String
Required.
-
#quantity ⇒ Google::Apis::HealthV4::WeightQuantityRollup
Rollup for the weight.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NutrientQuantityRollup
constructor
A new instance of NutrientQuantityRollup.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NutrientQuantityRollup
Returns a new instance of NutrientQuantityRollup.
3549 3550 3551 |
# File 'lib/google/apis/health_v4/classes.rb', line 3549 def initialize(**args) update!(**args) end |
Instance Attribute Details
#nutrient ⇒ String
Required. Aggregated nutrient.
Corresponds to the JSON property nutrient
3542 3543 3544 |
# File 'lib/google/apis/health_v4/classes.rb', line 3542 def nutrient @nutrient end |
#quantity ⇒ Google::Apis::HealthV4::WeightQuantityRollup
Rollup for the weight.
Corresponds to the JSON property quantity
3547 3548 3549 |
# File 'lib/google/apis/health_v4/classes.rb', line 3547 def quantity @quantity end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3554 3555 3556 3557 |
# File 'lib/google/apis/health_v4/classes.rb', line 3554 def update!(**args) @nutrient = args[:nutrient] if args.key?(:nutrient) @quantity = args[:quantity] if args.key?(:quantity) end |