Sha256: 742f620df97606c83a8231ec4cdf56753bf09b5585b9fa4471a1ae79e4ba08b2

Contents?: true

Size: 355 Bytes

Versions: 1

Compression:

Stored size: 355 Bytes

Contents

require 'strava/v1/models/club'

module Strava
  module V1
    module ClubsRequest
      def clubs_path
        'clubs'
      end

      def clubs(name)
        all_clubs = []
        self.fetch(clubs_path, {:name => name})["clubs"].each { |club_json|
          all_clubs.push(Club.new(club_json))
        }
        all_clubs
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
strava-api-v2-0.1 lib/strava/v1/clubs_request.rb