Class: Google::Apis::HealthV4::HydrationLogRollupValue

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

Represents the result of the rollup of the hydration log data type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ HydrationLogRollupValue

Returns a new instance of HydrationLogRollupValue.



3054
3055
3056
# File 'lib/google/apis/health_v4/classes.rb', line 3054

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

Instance Attribute Details

#amount_consumedGoogle::Apis::HealthV4::VolumeQuantityRollup

Rollup for volume quantity. Corresponds to the JSON property amountConsumed



3052
3053
3054
# File 'lib/google/apis/health_v4/classes.rb', line 3052

def amount_consumed
  @amount_consumed
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3059
3060
3061
# File 'lib/google/apis/health_v4/classes.rb', line 3059

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