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.



5901
5902
5903
# File 'lib/google/apis/health_v4/classes.rb', line 5901

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

Instance Attribute Details

#weight_grams_avgFloat

Average weight in grams. Corresponds to the JSON property weightGramsAvg

Returns:

  • (Float)


5899
5900
5901
# File 'lib/google/apis/health_v4/classes.rb', line 5899

def weight_grams_avg
  @weight_grams_avg
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5906
5907
5908
# File 'lib/google/apis/health_v4/classes.rb', line 5906

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