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.
5881 5882 5883 |
# File 'lib/google/apis/health_v4/classes.rb', line 5881 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
5874 5875 5876 |
# File 'lib/google/apis/health_v4/classes.rb', line 5874 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
5879 5880 5881 |
# File 'lib/google/apis/health_v4/classes.rb', line 5879 def user_provided_unit_last @user_provided_unit_last end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5886 5887 5888 5889 |
# File 'lib/google/apis/health_v4/classes.rb', line 5886 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 |