Sha256: 332b9744949a6394da6f9b11bc89e7f204ea1aeb81bfd42724f55165624eef41

Contents?: true

Size: 1.07 KB

Versions: 6

Compression:

Stored size: 1.07 KB

Contents

# 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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
strava-ruby-client-2.2.0 lib/strava/models/activity_stats.rb
strava-ruby-client-2.1.0 lib/strava/models/activity_stats.rb
strava-ruby-client-2.0.0 lib/strava/models/activity_stats.rb
strava-ruby-client-1.1.0 lib/strava/models/activity_stats.rb
strava-ruby-client-1.0.1 lib/strava/models/activity_stats.rb
strava-ruby-client-1.0.0 lib/strava/models/activity_stats.rb