Class: Google::Apis::HealthV4::VolumeQuantity
- Inherits:
-
Object
- Object
- Google::Apis::HealthV4::VolumeQuantity
- 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 volume quantity.
Instance Attribute Summary collapse
-
#milliliters ⇒ Float
Required.
-
#user_provided_unit ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VolumeQuantity
constructor
A new instance of VolumeQuantity.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ VolumeQuantity
Returns a new instance of VolumeQuantity.
5778 5779 5780 |
# File 'lib/google/apis/health_v4/classes.rb', line 5778 def initialize(**args) update!(**args) end |
Instance Attribute Details
#milliliters ⇒ Float
Required. Value representing the volume in milliliters.
Corresponds to the JSON property milliliters
5769 5770 5771 |
# File 'lib/google/apis/health_v4/classes.rb', line 5769 def milliliters @milliliters end |
#user_provided_unit ⇒ String
Optional. Value representing the user provided unit, used only for user-facing
input and display purposes. In the API format, all volume quantities are
converted to milliliters.
Corresponds to the JSON property userProvidedUnit
5776 5777 5778 |
# File 'lib/google/apis/health_v4/classes.rb', line 5776 def user_provided_unit @user_provided_unit end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5783 5784 5785 5786 |
# File 'lib/google/apis/health_v4/classes.rb', line 5783 def update!(**args) @milliliters = args[:milliliters] if args.key?(:milliliters) @user_provided_unit = args[:user_provided_unit] if args.key?(:user_provided_unit) end |