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.
3467 3468 3469 |
# File 'lib/google/apis/health_v4/classes.rb', line 3467 def initialize(**args) update!(**args) end |
Instance Attribute Details
#nutrient ⇒ String
Required. Aggregated nutrient.
Corresponds to the JSON property nutrient
3460 3461 3462 |
# File 'lib/google/apis/health_v4/classes.rb', line 3460 def nutrient @nutrient end |
#quantity ⇒ Google::Apis::HealthV4::WeightQuantityRollup
Rollup for the weight.
Corresponds to the JSON property quantity
3465 3466 3467 |
# File 'lib/google/apis/health_v4/classes.rb', line 3465 def quantity @quantity end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3472 3473 3474 3475 |
# File 'lib/google/apis/health_v4/classes.rb', line 3472 def update!(**args) @nutrient = args[:nutrient] if args.key?(:nutrient) @quantity = args[:quantity] if args.key?(:quantity) end |