Module: Strava::Api::Endpoints::RunningRaces

Included in:
Client
Defined in:
lib/strava/api/endpoints/running_races.rb

Instance Method Summary collapse

Instance Method Details

#running_race(id_or_options, options = {}) ⇒ Object

Returns a running race for a given identifier.

Parameters:

  • options (Hash) (defaults to: {})

    a customizable set of options

Options Hash (options):

  • :id (String)

    The identifier of the running race.



13
14
15
16
# File 'lib/strava/api/endpoints/running_races.rb', line 13

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