Class: Google::Apis::HealthV4::TimeInHeartRateZones

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

Time spent in each heart rate zone.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TimeInHeartRateZones

Returns a new instance of TimeInHeartRateZones.



5876
5877
5878
# File 'lib/google/apis/health_v4/classes.rb', line 5876

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

Instance Attribute Details

#light_timeString

Optional. Time spent in light heart rate zone. Corresponds to the JSON property lightTime

Returns:

  • (String)


5859
5860
5861
# File 'lib/google/apis/health_v4/classes.rb', line 5859

def light_time
  @light_time
end

#moderate_timeString

Optional. Time spent in moderate heart rate zone. Corresponds to the JSON property moderateTime

Returns:

  • (String)


5864
5865
5866
# File 'lib/google/apis/health_v4/classes.rb', line 5864

def moderate_time
  @moderate_time
end

#peak_timeString

Optional. Time spent in peak heart rate zone. Corresponds to the JSON property peakTime

Returns:

  • (String)


5869
5870
5871
# File 'lib/google/apis/health_v4/classes.rb', line 5869

def peak_time
  @peak_time
end

#vigorous_timeString

Optional. Time spent in vigorous heart rate zone. Corresponds to the JSON property vigorousTime

Returns:

  • (String)


5874
5875
5876
# File 'lib/google/apis/health_v4/classes.rb', line 5874

def vigorous_time
  @vigorous_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5881
5882
5883
5884
5885
5886
# File 'lib/google/apis/health_v4/classes.rb', line 5881

def update!(**args)
  @light_time = args[:light_time] if args.key?(:light_time)
  @moderate_time = args[:moderate_time] if args.key?(:moderate_time)
  @peak_time = args[:peak_time] if args.key?(:peak_time)
  @vigorous_time = args[:vigorous_time] if args.key?(:vigorous_time)
end