Class: Strava::Models::ActivityTotal
- Inherits:
-
Response
- Object
- Hashie::Trash
- Strava::Model
- Response
- Strava::Models::ActivityTotal
- Defined in:
- lib/strava/models/activity_total.rb
Overview
Represents totals for a specific activity type and time period.
Contains aggregated counts, distance, time, and elevation for activities. Used within ActivityStats to break down statistics by activity type (ride, run, swim) and period (recent, YTD, all-time).
Includes helper mixins for formatting distance, time, and elevation.
Instance Method Summary collapse
-
#achievement_count ⇒ Integer
Total number of achievements/trophies earned.
-
#count ⇒ Integer
Number of activities.
Methods included from Mixins::ElevationGain
#elevation_gain_in_feet, #elevation_gain_in_feet_s, #elevation_gain_in_meters, #elevation_gain_in_meters_s, #elevation_gain_s
Methods included from Mixins::ElapsedTime
Methods included from Mixins::MovingTime
Methods included from Mixins::Distance
#distance_in_feet, #distance_in_kilometers, #distance_in_kilometers_s, #distance_in_meters, #distance_in_meters_s, #distance_in_miles, #distance_in_miles_s, #distance_in_yards, #distance_in_yards_s, #distance_s
Instance Method Details
#achievement_count ⇒ Integer
Returns Total number of achievements/trophies earned.
36 |
# File 'lib/strava/models/activity_total.rb', line 36 property 'achievement_count' |
#count ⇒ Integer
Returns Number of activities.
28 |
# File 'lib/strava/models/activity_total.rb', line 28 property 'count' |