Class: Google::Apis::HealthV4::NutrientQuantityRollup

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

Nutrient quantity rollup.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NutrientQuantityRollup

Returns a new instance of NutrientQuantityRollup.



3641
3642
3643
# File 'lib/google/apis/health_v4/classes.rb', line 3641

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#nutrientString

Required. Aggregated nutrient. Corresponds to the JSON property nutrient

Returns:

  • (String)


3634
3635
3636
# File 'lib/google/apis/health_v4/classes.rb', line 3634

def nutrient
  @nutrient
end

#quantityGoogle::Apis::HealthV4::WeightQuantityRollup

Rollup for the weight. Corresponds to the JSON property quantity



3639
3640
3641
# File 'lib/google/apis/health_v4/classes.rb', line 3639

def quantity
  @quantity
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3646
3647
3648
3649
# File 'lib/google/apis/health_v4/classes.rb', line 3646

def update!(**args)
  @nutrient = args[:nutrient] if args.key?(:nutrient)
  @quantity = args[:quantity] if args.key?(:quantity)
end