-
-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathzone_range.rb
More file actions
30 lines (28 loc) · 1.02 KB
/
zone_range.rb
File metadata and controls
30 lines (28 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# frozen_string_literal: true
module Strava
module Models
#
# Represents a single training zone range.
#
# Training zones define intensity levels for heart rate or power. Each zone
# has a minimum and maximum value that defines the range for that intensity level.
#
# @see https://developers.strava.com/docs/reference/#api-models-ZoneRange Strava API ZoneRange reference
# @see Strava::Models::HeartRateZoneRanges
# @see Strava::Models::PowerZoneRanges
# @see Strava::Models::TimedZoneRange
#
# @example Accessing zone ranges
# zones = client.athlete_zones
# zones.heart_rate.zones.each_with_index do |zone, i|
# puts "Zone #{i + 1}: #{zone.min}-#{zone.max} bpm"
# end
#
class ZoneRange < Strava::Models::Response
# @return [Integer] Maximum value for this zone (e.g., maximum heart rate or power)
property 'max'
# @return [Integer] Minimum value for this zone (e.g., minimum heart rate or power)
property 'min'
end
end
end