Class: Google::Apis::HealthV4::BodyFatRollupValue

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 body fat data type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BodyFatRollupValue

Returns a new instance of BodyFatRollupValue.



424
425
426
# File 'lib/google/apis/health_v4/classes.rb', line 424

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

Instance Attribute Details

#body_fat_percentage_avgFloat

Average body fat percentage. Corresponds to the JSON property bodyFatPercentageAvg

Returns:

  • (Float)


422
423
424
# File 'lib/google/apis/health_v4/classes.rb', line 422

def body_fat_percentage_avg
  @body_fat_percentage_avg
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



429
430
431
# File 'lib/google/apis/health_v4/classes.rb', line 429

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