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.



6012
6013
6014
# File 'lib/google/apis/health_v4/classes.rb', line 6012

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#weight_grams_avgFloat

Average weight in grams. Corresponds to the JSON property weightGramsAvg

Returns:

  • (Float)


6010
6011
6012
# File 'lib/google/apis/health_v4/classes.rb', line 6010

def weight_grams_avg
  @weight_grams_avg
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6017
6018
6019
# File 'lib/google/apis/health_v4/classes.rb', line 6017

def update!(**args)
  @weight_grams_avg = args[:weight_grams_avg] if args.key?(:weight_grams_avg)
end