module Strava::Api::Endpoints::RunningRaces
Public Instance Methods
running_race(id_or_options, options = {})
click to toggle source
Returns a running race for a given identifier.
@option options [String] :id
The identifier of the running race.
# File lib/strava/api/endpoints/running_races.rb, line 11 def running_race(id_or_options, options = {}) id, options = parse_args(id_or_options, options) Strava::Models::RunningRace.new(get("running_races/#{id}", options)) end
running_races(options = {})
click to toggle source
Returns a list running races based on a set of search criteria.
@option options [Integer] :year
Filters the list by a given year.
# File lib/strava/api/endpoints/running_races.rb, line 22 def running_races(options = {}) get('running_races', options).map do |row| Strava::Models::RunningRace.new(row) end end