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.



3549
3550
3551
# File 'lib/google/apis/health_v4/classes.rb', line 3549

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

Instance Attribute Details

#nutrientString

Required. Aggregated nutrient. Corresponds to the JSON property nutrient

Returns:

  • (String)


3542
3543
3544
# File 'lib/google/apis/health_v4/classes.rb', line 3542

def nutrient
  @nutrient
end

#quantityGoogle::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