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.



3467
3468
3469
# File 'lib/google/apis/health_v4/classes.rb', line 3467

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

Instance Attribute Details

#nutrientString

Required. Aggregated nutrient. Corresponds to the JSON property nutrient

Returns:

  • (String)


3460
3461
3462
# File 'lib/google/apis/health_v4/classes.rb', line 3460

def nutrient
  @nutrient
end

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