Class: Google::Apis::HealthV4::RespiratoryRateSleepSummaryStatistics
- Inherits:
-
Object
- Object
- Google::Apis::HealthV4::RespiratoryRateSleepSummaryStatistics
- 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
-
#breaths_per_minute ⇒ Float
Required.
-
#signal_to_noise ⇒ Float
Optional.
-
#standard_deviation ⇒ Float
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RespiratoryRateSleepSummaryStatistics
constructor
A new instance of RespiratoryRateSleepSummaryStatistics.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_minute ⇒ Float
Required. Average breaths per minute.
Corresponds to the JSON property breathsPerMinute
3023 3024 3025 |
# File 'lib/google/apis/health_v4/classes.rb', line 3023 def breaths_per_minute @breaths_per_minute end |
#signal_to_noise ⇒ Float
Optional. How trustworthy the data is for the computation.
Corresponds to the JSON property signalToNoise
3028 3029 3030 |
# File 'lib/google/apis/health_v4/classes.rb', line 3028 def signal_to_noise @signal_to_noise end |
#standard_deviation ⇒ Float
Optional. Standard deviation of the respiratory rate during sleep.
Corresponds to the JSON property standardDeviation
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 |