Class: Google::Apis::HealthV4::VolumeQuantityRollup
- Inherits:
-
Object
- Object
- Google::Apis::HealthV4::VolumeQuantityRollup
- 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
-
#milliliters_sum ⇒ Float
Required.
-
#user_provided_unit_last ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VolumeQuantityRollup
constructor
A new instance of VolumeQuantityRollup.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ VolumeQuantityRollup
Returns a new instance of VolumeQuantityRollup.
4352 4353 4354 |
# File 'lib/google/apis/health_v4/classes.rb', line 4352 def initialize(**args) update!(**args) end |
Instance Attribute Details
#milliliters_sum ⇒ Float
Required. The sum of volume in milliliters.
Corresponds to the JSON property millilitersSum
4345 4346 4347 |
# File 'lib/google/apis/health_v4/classes.rb', line 4345 def milliliters_sum @milliliters_sum end |
#user_provided_unit_last ⇒ String
Optional. The user provided unit on the last element.
Corresponds to the JSON property userProvidedUnitLast
4350 4351 4352 |
# File 'lib/google/apis/health_v4/classes.rb', line 4350 def user_provided_unit_last @user_provided_unit_last end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4357 4358 4359 4360 |
# File 'lib/google/apis/health_v4/classes.rb', line 4357 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 |