lib/strava/models/zones.rb in strava-ruby-client-0.4.3 vs lib/strava/models/zones.rb in strava-ruby-client-1.0.0
- old
+ new
@@ -1,9 +1,9 @@
# frozen_string_literal: true
module Strava
module Models
- class Zones < Model
+ class Zones < Strava::Models::Response
property 'heart_rate', transform_with: ->(v) { Strava::Models::HeartRateZoneRanges.new(v) }
property 'power', transform_with: ->(v) { Strava::Models::PowerZoneRanges.new(v) }
end
end
end