-
-
Notifications
You must be signed in to change notification settings - Fork 22
/
activity_stats.rb
19 lines (18 loc) · 1.07 KB
/
activity_stats.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true
module Strava
module Models
class ActivityStats < Strava::Models::Response
property 'biggest_ride_distance'
property 'biggest_climb_elevation_gain'
property 'recent_ride_totals', transform_with: ->(v) { Strava::Models::ActivityTotal.new(v) }
property 'recent_run_totals', transform_with: ->(v) { Strava::Models::ActivityTotal.new(v) }
property 'recent_swim_totals', transform_with: ->(v) { Strava::Models::ActivityTotal.new(v) }
property 'ytd_ride_totals', transform_with: ->(v) { Strava::Models::ActivityTotal.new(v) }
property 'ytd_run_totals', transform_with: ->(v) { Strava::Models::ActivityTotal.new(v) }
property 'ytd_swim_totals', transform_with: ->(v) { Strava::Models::ActivityTotal.new(v) }
property 'all_ride_totals', transform_with: ->(v) { Strava::Models::ActivityTotal.new(v) }
property 'all_run_totals', transform_with: ->(v) { Strava::Models::ActivityTotal.new(v) }
property 'all_swim_totals', transform_with: ->(v) { Strava::Models::ActivityTotal.new(v) }
end
end
end