Module: Strava::V1::ClubsRequest
- Included in:
- Connection
- Defined in:
- lib/strava/v1/clubs_request.rb
Instance Method Summary collapse
Instance Method Details
#clubs(name) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/strava/v1/clubs_request.rb', line 10 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 |
#clubs_path ⇒ Object
6 7 8 |
# File 'lib/strava/v1/clubs_request.rb', line 6 def clubs_path 'clubs' end |