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.



397
398
399
# File 'lib/google/apis/health_v4/classes.rb', line 397

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)


395
396
397
# File 'lib/google/apis/health_v4/classes.rb', line 395

def body_fat_percentage_avg
  @body_fat_percentage_avg
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



402
403
404
# File 'lib/google/apis/health_v4/classes.rb', line 402

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