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.



4654
4655
4656
# File 'lib/google/apis/health_v4/classes.rb', line 4654

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)


4647
4648
4649
# File 'lib/google/apis/health_v4/classes.rb', line 4647

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



4652
4653
4654
# File 'lib/google/apis/health_v4/classes.rb', line 4652

def sample_time
  @sample_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4659
4660
4661
4662
# File 'lib/google/apis/health_v4/classes.rb', line 4659

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