Class: Google::Apis::HealthV4::WeightRollupValue
- Inherits:
-
Object
- Object
- Google::Apis::HealthV4::WeightRollupValue
- 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 result of the rollup of the weight data type.
Instance Attribute Summary collapse
-
#weight_grams_avg ⇒ Float
Average weight in grams.
Instance Method Summary collapse
-
#initialize(**args) ⇒ WeightRollupValue
constructor
A new instance of WeightRollupValue.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ WeightRollupValue
Returns a new instance of WeightRollupValue.
4464 4465 4466 |
# File 'lib/google/apis/health_v4/classes.rb', line 4464 def initialize(**args) update!(**args) end |
Instance Attribute Details
#weight_grams_avg ⇒ Float
Average weight in grams.
Corresponds to the JSON property weightGramsAvg
4462 4463 4464 |
# File 'lib/google/apis/health_v4/classes.rb', line 4462 def weight_grams_avg @weight_grams_avg end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4469 4470 4471 |
# File 'lib/google/apis/health_v4/classes.rb', line 4469 def update!(**args) @weight_grams_avg = args[:weight_grams_avg] if args.key?(:weight_grams_avg) end |