Module: Strava::Api::Endpoints::Athletes
- Included in:
- Client
- Defined in:
- lib/strava/api/endpoints/athletes.rb
Instance Method Summary collapse
-
#athlete ⇒ Object
Returns the currently authenticated athlete.
-
#athlete_stats(id_or_options, options = {}) ⇒ Object
Returns the activity stats of an athlete.
-
#athlete_zones(options = {}) ⇒ Object
Returns the the authenticated athlete’s heart rate and power zones.
-
#update_athlete(options = {}) ⇒ Object
Update the currently authenticated athlete.
Instance Method Details
#athlete ⇒ Object
Returns the currently authenticated athlete.
8 9 10 |
# File 'lib/strava/api/endpoints/athletes.rb', line 8 def athlete Strava::Models::Athlete.new(get('athlete')) end |
#athlete_stats(id_or_options, options = {}) ⇒ Object
Returns the activity stats of an athlete.
25 26 27 28 |
# File 'lib/strava/api/endpoints/athletes.rb', line 25 def athlete_stats(, = {}) id, = parse_args(, ) Strava::Models::ActivityStats.new(get("athletes/#{id}/stats", )) end |