Sha256: 77db14aec3457f7c539b7fbb93a0c5e7e2164fe0a92c27a9b78605f2f195ddb1

Contents?: true

Size: 789 Bytes

Versions: 6

Compression:

Stored size: 789 Bytes

Contents

# frozen_string_literal: true

module Strava
  module Models
    class Club < Strava::Models::Response
      property 'id'
      property 'resource_state'
      property 'name'
      property 'profile_medium'
      property 'profile'
      property 'cover_photo'
      property 'cover_photo_small'
      property 'sport_type'
      property 'city'
      property 'state'
      property 'country'
      property 'private'
      property 'member_count'
      property 'featured'
      property 'verified'
      property 'url'
      property 'membership'
      property 'admin'
      property 'owner'
      property 'description'
      property 'club_type'
      property 'following_count'

      def strava_url
        "https://www.strava.com/clubs/#{url || id}"
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
strava-ruby-client-2.2.0 lib/strava/models/club.rb
strava-ruby-client-2.1.0 lib/strava/models/club.rb
strava-ruby-client-2.0.0 lib/strava/models/club.rb
strava-ruby-client-1.1.0 lib/strava/models/club.rb
strava-ruby-client-1.0.1 lib/strava/models/club.rb
strava-ruby-client-1.0.0 lib/strava/models/club.rb