Class: Google::Apis::HealthV4::OxygenSaturation

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

Captures the user's instantaneous oxygen saturation percentage (SpO2).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OxygenSaturation

Returns a new instance of OxygenSaturation.



2690
2691
2692
# File 'lib/google/apis/health_v4/classes.rb', line 2690

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

Instance Attribute Details

#percentageFloat

Required. The oxygen saturation percentage. Valid values are from 0 to 100. Corresponds to the JSON property percentage

Returns:

  • (Float)


2683
2684
2685
# File 'lib/google/apis/health_v4/classes.rb', line 2683

def percentage
  @percentage
end

#sample_timeGoogle::Apis::HealthV4::ObservationSampleTime

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



2688
2689
2690
# File 'lib/google/apis/health_v4/classes.rb', line 2688

def sample_time
  @sample_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2695
2696
2697
2698
# File 'lib/google/apis/health_v4/classes.rb', line 2695

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