Class: Google::Apis::HealthV4::VolumeQuantityRollup

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

Rollup for volume quantity.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VolumeQuantityRollup

Returns a new instance of VolumeQuantityRollup.



4413
4414
4415
# File 'lib/google/apis/health_v4/classes.rb', line 4413

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

Instance Attribute Details

#milliliters_sumFloat

Required. The sum of volume in milliliters. Corresponds to the JSON property millilitersSum

Returns:

  • (Float)


4406
4407
4408
# File 'lib/google/apis/health_v4/classes.rb', line 4406

def milliliters_sum
  @milliliters_sum
end

#user_provided_unit_lastString

Optional. The user provided unit on the last element. Corresponds to the JSON property userProvidedUnitLast

Returns:

  • (String)


4411
4412
4413
# File 'lib/google/apis/health_v4/classes.rb', line 4411

def user_provided_unit_last
  @user_provided_unit_last
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4418
4419
4420
4421
# File 'lib/google/apis/health_v4/classes.rb', line 4418

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