Class: Google::Apis::HealthV4::WeightRollupValue

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_avgFloat

Average weight in grams. Corresponds to the JSON property weightGramsAvg

Returns:

  • (Float)


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