Class: Google::Apis::HealthV4::WeightQuantityRollup
- Inherits:
-
Object
- Object
- Google::Apis::HealthV4::WeightQuantityRollup
- 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 the weight.
Instance Attribute Summary collapse
-
#grams_sum ⇒ Float
Required.
-
#user_provided_unit_last ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ WeightQuantityRollup
constructor
A new instance of WeightQuantityRollup.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ WeightQuantityRollup
Returns a new instance of WeightQuantityRollup.
5982 5983 5984 |
# File 'lib/google/apis/health_v4/classes.rb', line 5982 def initialize(**args) update!(**args) end |
Instance Attribute Details
#grams_sum ⇒ Float
Required. The sum of the weight in grams.
Corresponds to the JSON property gramsSum
5975 5976 5977 |
# File 'lib/google/apis/health_v4/classes.rb', line 5975 def grams_sum @grams_sum end |
#user_provided_unit_last ⇒ String
Optional. The user provided unit on the last element.
Corresponds to the JSON property userProvidedUnitLast
5980 5981 5982 |
# File 'lib/google/apis/health_v4/classes.rb', line 5980 def user_provided_unit_last @user_provided_unit_last end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5987 5988 5989 5990 |
# File 'lib/google/apis/health_v4/classes.rb', line 5987 def update!(**args) @grams_sum = args[:grams_sum] if args.key?(:grams_sum) @user_provided_unit_last = args[:user_provided_unit_last] if args.key?(:user_provided_unit_last) end |