module Strava::Api::Endpoints::Athletes
Public Instance Methods
athlete()
click to toggle source
Returns the currently authenticated athlete.
# File lib/strava/api/endpoints/athletes.rb, line 8 def athlete Strava::Models::Athlete.new(get('athlete')) end
athlete_stats(id_or_options, options = {})
click to toggle source
Returns the activity stats of an athlete.
@option options [String] :id
Athlete id.
# File lib/strava/api/endpoints/athletes.rb, line 25 def athlete_stats(id_or_options, options = {}) id, options = parse_args(id_or_options, options) Strava::Models::ActivityStats.new(get("athletes/#{id}/stats", options)) end
athlete_zones(options = {})
click to toggle source
Returns the the authenticated athlete's heart rate and power zones.
# File lib/strava/api/endpoints/athletes.rb, line 15 def athlete_zones(options = {}) Strava::Models::Zones.new(get('athlete/zones', options)) end
update_athlete(options = {})
click to toggle source
Update the currently authenticated athlete.
@option options [Float] :weight
The weight of the athlete in kilograms.
# File lib/strava/api/endpoints/athletes.rb, line 36 def update_athlete(options = {}) Strava::Models::Athlete.new(put('athlete', options)) end