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.



2159
2160
2161
# File 'lib/google/apis/health_v4/classes.rb', line 2159

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

Instance Attribute Details

#amount_consumedGoogle::Apis::HealthV4::VolumeQuantityRollup

Rollup for volume quantity. Corresponds to the JSON property amountConsumed



2157
2158
2159
# File 'lib/google/apis/health_v4/classes.rb', line 2157

def amount_consumed
  @amount_consumed
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2164
2165
2166
# File 'lib/google/apis/health_v4/classes.rb', line 2164

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