Class: Google::Apis::HealthV4::WeightQuantityRollup

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

Rollup for the weight.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ WeightQuantityRollup

Returns a new instance of WeightQuantityRollup.



5884
5885
5886
# File 'lib/google/apis/health_v4/classes.rb', line 5884

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

Instance Attribute Details

#grams_sumFloat

Required. The sum of the weight in grams. Corresponds to the JSON property gramsSum

Returns:

  • (Float)


5877
5878
5879
# File 'lib/google/apis/health_v4/classes.rb', line 5877

def grams_sum
  @grams_sum
end

#user_provided_unit_lastString

Optional. The user provided unit on the last element. Corresponds to the JSON property userProvidedUnitLast

Returns:

  • (String)


5882
5883
5884
# File 'lib/google/apis/health_v4/classes.rb', line 5882

def user_provided_unit_last
  @user_provided_unit_last
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5889
5890
5891
5892
# File 'lib/google/apis/health_v4/classes.rb', line 5889

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