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.



2970
2971
2972
# File 'lib/google/apis/health_v4/classes.rb', line 2970

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

Instance Attribute Details

#amount_consumedGoogle::Apis::HealthV4::VolumeQuantityRollup

Rollup for volume quantity. Corresponds to the JSON property amountConsumed



2968
2969
2970
# File 'lib/google/apis/health_v4/classes.rb', line 2968

def amount_consumed
  @amount_consumed
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2975
2976
2977
# File 'lib/google/apis/health_v4/classes.rb', line 2975

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