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.



5967
5968
5969
# File 'lib/google/apis/health_v4/classes.rb', line 5967

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)


5960
5961
5962
# File 'lib/google/apis/health_v4/classes.rb', line 5960

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)


5965
5966
5967
# File 'lib/google/apis/health_v4/classes.rb', line 5965

def user_provided_unit_last
  @user_provided_unit_last
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5972
5973
5974
5975
# File 'lib/google/apis/health_v4/classes.rb', line 5972

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