Class: Strava::Models::DetailedClub

Inherits:
Response show all
Defined in:
lib/strava/models/detailed_club.rb

Overview

Represents detailed information about a Strava club.

Clubs are groups of athletes on Strava. This model contains comprehensive club information including member counts, location, sport type, and membership status for the authenticated athlete.

Examples:

Get club details

club = client.club(12345)
puts club.name
puts "#{club.member_count} members in #{club.city}, #{club.country}"
puts "Sport type: #{club.sport_type}"
puts "Private: #{club.private}"
puts club.strava_url

See Also:

Instance Method Summary collapse

Instance Method Details

#activity_typesArray<String>

Returns List of activity types the club supports.

Returns:

  • (Array<String>)

    List of activity types the club supports



46
# File 'lib/strava/models/detailed_club.rb', line 46

property 'activity_types'

#activity_types_iconString

Returns Icon representing the activity types.

Returns:

  • (String)

    Icon representing the activity types



91
# File 'lib/strava/models/detailed_club.rb', line 91

property 'activity_types_icon'

#adminBoolean

Returns Whether authenticated athlete is a club administrator.

Returns:

  • (Boolean)

    Whether authenticated athlete is a club administrator



76
# File 'lib/strava/models/detailed_club.rb', line 76

property 'admin'

#cityString

Returns City where club is located.

Returns:

  • (String)

    City where club is located



49
# File 'lib/strava/models/detailed_club.rb', line 49

property 'city'

#club_typeString

Returns Type of club (e.g., "casual_club", "racing_team", "shop", "company", "other").

Returns:

  • (String)

    Type of club (e.g., "casual_club", "racing_team", "shop", "company", "other")



82
# File 'lib/strava/models/detailed_club.rb', line 82

property 'club_type'

#countryString

Returns Country where club is located.

Returns:

  • (String)

    Country where club is located



55
# File 'lib/strava/models/detailed_club.rb', line 55

property 'country'

#cover_photoString

Returns URL to club cover photo.

Returns:

  • (String)

    URL to club cover photo



37
# File 'lib/strava/models/detailed_club.rb', line 37

property 'cover_photo'

#cover_photo_smallString

Returns URL to smaller club cover photo.

Returns:

  • (String)

    URL to smaller club cover photo



40
# File 'lib/strava/models/detailed_club.rb', line 40

property 'cover_photo_small'

#descriptionString

Returns Club description text.

Returns:

  • (String)

    Club description text



100
# File 'lib/strava/models/detailed_club.rb', line 100

property 'description'

#dimensionsArray<Integer>

Returns Dimensions of cover photo [width, height].

Returns:

  • (Array<Integer>)

    Dimensions of cover photo [width, height]



94
# File 'lib/strava/models/detailed_club.rb', line 94

property 'dimensions'

Returns Whether club is featured by Strava.

Returns:

  • (Boolean)

    Whether club is featured by Strava



64
# File 'lib/strava/models/detailed_club.rb', line 64

property 'featured'

#following_countInteger

Returns Number of athletes following this club.

Returns:

  • (Integer)

    Number of athletes following this club



85
# File 'lib/strava/models/detailed_club.rb', line 85

property 'following_count'

#idInteger

Returns Club identifier.

Returns:

  • (Integer)

    Club identifier



25
# File 'lib/strava/models/detailed_club.rb', line 25

property 'id'

#localized_sport_typeString

Returns Localized sport type string.

Returns:

  • (String)

    Localized sport type string



97
# File 'lib/strava/models/detailed_club.rb', line 97

property 'localized_sport_type'

#member_countInteger

Returns Number of club members.

Returns:

  • (Integer)

    Number of club members



61
# File 'lib/strava/models/detailed_club.rb', line 61

property 'member_count'

#membershipString

Returns Authenticated athlete's membership status (e.g., "member", "pending").

Returns:

  • (String)

    Authenticated athlete's membership status (e.g., "member", "pending")



73
# File 'lib/strava/models/detailed_club.rb', line 73

property 'membership'

#nameString

Returns Club name.

Returns:

  • (String)

    Club name



31
# File 'lib/strava/models/detailed_club.rb', line 31

property 'name'

#ownerBoolean

Returns Whether authenticated athlete is the club owner.

Returns:

  • (Boolean)

    Whether authenticated athlete is the club owner



79
# File 'lib/strava/models/detailed_club.rb', line 79

property 'owner'

#privateBoolean

Returns Whether club is private.

Returns:

  • (Boolean)

    Whether club is private



58
# File 'lib/strava/models/detailed_club.rb', line 58

property 'private'

#profileString

Returns URL to full-sized profile picture.

Returns:

  • (String)

    URL to full-sized profile picture



88
# File 'lib/strava/models/detailed_club.rb', line 88

property 'profile'

#profile_mediumString

Returns URL to medium-sized profile picture.

Returns:

  • (String)

    URL to medium-sized profile picture



34
# File 'lib/strava/models/detailed_club.rb', line 34

property 'profile_medium'

#resource_stateInteger

Returns Resource state indicator (1=meta, 2=summary, 3=detailed).

Returns:

  • (Integer)

    Resource state indicator (1=meta, 2=summary, 3=detailed)



28
# File 'lib/strava/models/detailed_club.rb', line 28

property 'resource_state'

#sport_typeString

Returns Primary sport type (e.g., "cycling", "running", "other").

Returns:

  • (String)

    Primary sport type (e.g., "cycling", "running", "other")



43
# File 'lib/strava/models/detailed_club.rb', line 43

property 'sport_type'

#stateString

Returns State/province where club is located.

Returns:

  • (String)

    State/province where club is located



52
# File 'lib/strava/models/detailed_club.rb', line 52

property 'state'

#strava_urlString

Returns the Strava web URL for this club.

Returns:

  • (String)

    Full URL to view the club on Strava.com



110
111
112
# File 'lib/strava/models/detailed_club.rb', line 110

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

#urlString

Returns Club URL slug.

Returns:

  • (String)

    Club URL slug



70
# File 'lib/strava/models/detailed_club.rb', line 70

property 'url'

#verifiedBoolean

Returns Whether club is verified by Strava.

Returns:

  • (Boolean)

    Whether club is verified by Strava



67
# File 'lib/strava/models/detailed_club.rb', line 67

property 'verified'

#websiteString

Returns Club website URL.

Returns:

  • (String)

    Club website URL



103
# File 'lib/strava/models/detailed_club.rb', line 103

property 'website'