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.



4446
4447
4448
# File 'lib/google/apis/health_v4/classes.rb', line 4446

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)


4434
4435
4436
# File 'lib/google/apis/health_v4/classes.rb', line 4434

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)


4439
4440
4441
# File 'lib/google/apis/health_v4/classes.rb', line 4439

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)


4444
4445
4446
# File 'lib/google/apis/health_v4/classes.rb', line 4444

def standard_deviation
  @standard_deviation
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4451
4452
4453
4454
4455
# File 'lib/google/apis/health_v4/classes.rb', line 4451

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