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.
4423 4424 4425 |
# File 'lib/google/apis/health_v4/classes.rb', line 4423 def initialize(**args) update!(**args) end |
Instance Attribute Details
#weight_grams_avg ⇒ Float
Average weight in grams.
Corresponds to the JSON property weightGramsAvg
4421 4422 4423 |
# File 'lib/google/apis/health_v4/classes.rb', line 4421 def weight_grams_avg @weight_grams_avg end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4428 4429 4430 |
# File 'lib/google/apis/health_v4/classes.rb', line 4428 def update!(**args) @weight_grams_avg = args[:weight_grams_avg] if args.key?(:weight_grams_avg) end |