Class: Google::Apis::HealthV4::RespiratoryRateSleepSummaryStatistics

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

Respiratory rate statistics for a given sleep stage.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RespiratoryRateSleepSummaryStatistics

Returns a new instance of RespiratoryRateSleepSummaryStatistics.



3035
3036
3037
# File 'lib/google/apis/health_v4/classes.rb', line 3035

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

Instance Attribute Details

#breaths_per_minuteFloat

Required. Average breaths per minute. Corresponds to the JSON property breathsPerMinute

Returns:

  • (Float)


3023
3024
3025
# File 'lib/google/apis/health_v4/classes.rb', line 3023

def breaths_per_minute
  @breaths_per_minute
end

#signal_to_noiseFloat

Optional. How trustworthy the data is for the computation. Corresponds to the JSON property signalToNoise

Returns:

  • (Float)


3028
3029
3030
# File 'lib/google/apis/health_v4/classes.rb', line 3028

def signal_to_noise
  @signal_to_noise
end

#standard_deviationFloat

Optional. Standard deviation of the respiratory rate during sleep. Corresponds to the JSON property standardDeviation

Returns:

  • (Float)


3033
3034
3035
# File 'lib/google/apis/health_v4/classes.rb', line 3033

def standard_deviation
  @standard_deviation
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3040
3041
3042
3043
3044
# File 'lib/google/apis/health_v4/classes.rb', line 3040

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