Class: Google::Apis::HealthV4::RunVo2Max

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

VO2 max value calculated based on the user's running activity. Value stored in ml/kg/min.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RunVo2Max

Returns a new instance of RunVo2Max.



3359
3360
3361
# File 'lib/google/apis/health_v4/classes.rb', line 3359

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

Instance Attribute Details

#run_vo2_maxFloat

Required. Run VO2 max value in ml/kg/min. Corresponds to the JSON property runVo2Max

Returns:

  • (Float)


3352
3353
3354
# File 'lib/google/apis/health_v4/classes.rb', line 3352

def run_vo2_max
  @run_vo2_max
end

#sample_timeGoogle::Apis::HealthV4::ObservationSampleTime

Represents a sample time of an observed data point. Corresponds to the JSON property sampleTime



3357
3358
3359
# File 'lib/google/apis/health_v4/classes.rb', line 3357

def sample_time
  @sample_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3364
3365
3366
3367
# File 'lib/google/apis/health_v4/classes.rb', line 3364

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