Sha256: 84030918b13c5b09eb22df350035093bd56929bfed9b22162440dc9e1df25197

Contents?: true

Size: 511 Bytes

Versions: 6

Compression:

Stored size: 511 Bytes

Contents

# frozen_string_literal: true

module Strava
  module Api
    module Endpoints
      module RunningRaces
        #
        # Returns a running race for a given identifier.
        #
        # @option options [String] :id
        #   The identifier of the running race.
        #
        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
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
strava-ruby-client-2.2.0 lib/strava/api/endpoints/running_races.rb
strava-ruby-client-2.1.0 lib/strava/api/endpoints/running_races.rb
strava-ruby-client-2.0.0 lib/strava/api/endpoints/running_races.rb
strava-ruby-client-1.1.0 lib/strava/api/endpoints/running_races.rb
strava-ruby-client-1.0.1 lib/strava/api/endpoints/running_races.rb
strava-ruby-client-1.0.0 lib/strava/api/endpoints/running_races.rb