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.



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

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)


5874
5875
5876
# File 'lib/google/apis/health_v4/classes.rb', line 5874

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)


5879
5880
5881
# File 'lib/google/apis/health_v4/classes.rb', line 5879

def user_provided_unit_last
  @user_provided_unit_last
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5886
5887
5888
5889
# File 'lib/google/apis/health_v4/classes.rb', line 5886

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