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.



3096
3097
3098
# File 'lib/google/apis/health_v4/classes.rb', line 3096

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)


3084
3085
3086
# File 'lib/google/apis/health_v4/classes.rb', line 3084

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)


3089
3090
3091
# File 'lib/google/apis/health_v4/classes.rb', line 3089

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)


3094
3095
3096
# File 'lib/google/apis/health_v4/classes.rb', line 3094

def standard_deviation
  @standard_deviation
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3101
3102
3103
3104
3105
# File 'lib/google/apis/health_v4/classes.rb', line 3101

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