Class: Strava::Models::DetailedClub
- Inherits:
-
Response
- Object
- Hashie::Trash
- Strava::Model
- Response
- Strava::Models::DetailedClub
- 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.
Instance Method Summary collapse
-
#activity_types ⇒ Array<String>
List of activity types the club supports.
-
#activity_types_icon ⇒ String
Icon representing the activity types.
-
#admin ⇒ Boolean
Whether authenticated athlete is a club administrator.
-
#city ⇒ String
City where club is located.
-
#club_type ⇒ String
Type of club (e.g., "casual_club", "racing_team", "shop", "company", "other").
-
#country ⇒ String
Country where club is located.
-
#cover_photo ⇒ String
URL to club cover photo.
-
#cover_photo_small ⇒ String
URL to smaller club cover photo.
-
#description ⇒ String
Club description text.
-
#dimensions ⇒ Array<Integer>
Dimensions of cover photo [width, height].
-
#featured ⇒ Boolean
Whether club is featured by Strava.
-
#following_count ⇒ Integer
Number of athletes following this club.
-
#id ⇒ Integer
Club identifier.
-
#localized_sport_type ⇒ String
Localized sport type string.
-
#member_count ⇒ Integer
Number of club members.
-
#membership ⇒ String
Authenticated athlete's membership status (e.g., "member", "pending").
-
#name ⇒ String
Club name.
-
#owner ⇒ Boolean
Whether authenticated athlete is the club owner.
-
#private ⇒ Boolean
Whether club is private.
-
#profile ⇒ String
URL to full-sized profile picture.
-
#profile_medium ⇒ String
URL to medium-sized profile picture.
-
#resource_state ⇒ Integer
Resource state indicator (1=meta, 2=summary, 3=detailed).
-
#sport_type ⇒ String
Primary sport type (e.g., "cycling", "running", "other").
-
#state ⇒ String
State/province where club is located.
-
#strava_url ⇒ String
Returns the Strava web URL for this club.
-
#url ⇒ String
Club URL slug.
-
#verified ⇒ Boolean
Whether club is verified by Strava.
-
#website ⇒ String
Club website URL.
Instance Method Details
#activity_types ⇒ Array<String>
Returns List of activity types the club supports.
46 |
# File 'lib/strava/models/detailed_club.rb', line 46 property 'activity_types' |
#activity_types_icon ⇒ String
Returns Icon representing the activity types.
91 |
# File 'lib/strava/models/detailed_club.rb', line 91 property 'activity_types_icon' |
#admin ⇒ Boolean
Returns Whether authenticated athlete is a club administrator.
76 |
# File 'lib/strava/models/detailed_club.rb', line 76 property 'admin' |
#city ⇒ String
Returns City where club is located.
49 |
# File 'lib/strava/models/detailed_club.rb', line 49 property 'city' |
#club_type ⇒ String
Returns 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' |
#country ⇒ String
Returns Country where club is located.
55 |
# File 'lib/strava/models/detailed_club.rb', line 55 property 'country' |
#cover_photo ⇒ String
Returns URL to club cover photo.
37 |
# File 'lib/strava/models/detailed_club.rb', line 37 property 'cover_photo' |
#cover_photo_small ⇒ String
Returns URL to smaller club cover photo.
40 |
# File 'lib/strava/models/detailed_club.rb', line 40 property 'cover_photo_small' |
#description ⇒ String
Returns Club description text.
100 |
# File 'lib/strava/models/detailed_club.rb', line 100 property 'description' |
#dimensions ⇒ Array<Integer>
Returns Dimensions of cover photo [width, height].
94 |
# File 'lib/strava/models/detailed_club.rb', line 94 property 'dimensions' |
#featured ⇒ Boolean
Returns Whether club is featured by Strava.
64 |
# File 'lib/strava/models/detailed_club.rb', line 64 property 'featured' |
#following_count ⇒ Integer
Returns Number of athletes following this club.
85 |
# File 'lib/strava/models/detailed_club.rb', line 85 property 'following_count' |
#id ⇒ Integer
Returns Club identifier.
25 |
# File 'lib/strava/models/detailed_club.rb', line 25 property 'id' |
#localized_sport_type ⇒ String
Returns Localized sport type string.
97 |
# File 'lib/strava/models/detailed_club.rb', line 97 property 'localized_sport_type' |
#member_count ⇒ Integer
Returns Number of club members.
61 |
# File 'lib/strava/models/detailed_club.rb', line 61 property 'member_count' |
#membership ⇒ String
Returns Authenticated athlete's membership status (e.g., "member", "pending").
73 |
# File 'lib/strava/models/detailed_club.rb', line 73 property 'membership' |
#name ⇒ String
Returns Club name.
31 |
# File 'lib/strava/models/detailed_club.rb', line 31 property 'name' |
#owner ⇒ Boolean
Returns Whether authenticated athlete is the club owner.
79 |
# File 'lib/strava/models/detailed_club.rb', line 79 property 'owner' |
#private ⇒ Boolean
Returns Whether club is private.
58 |
# File 'lib/strava/models/detailed_club.rb', line 58 property 'private' |
#profile ⇒ String
Returns URL to full-sized profile picture.
88 |
# File 'lib/strava/models/detailed_club.rb', line 88 property 'profile' |
#profile_medium ⇒ String
Returns URL to medium-sized profile picture.
34 |
# File 'lib/strava/models/detailed_club.rb', line 34 property 'profile_medium' |
#resource_state ⇒ Integer
Returns Resource state indicator (1=meta, 2=summary, 3=detailed).
28 |
# File 'lib/strava/models/detailed_club.rb', line 28 property 'resource_state' |
#sport_type ⇒ String
Returns Primary sport type (e.g., "cycling", "running", "other").
43 |
# File 'lib/strava/models/detailed_club.rb', line 43 property 'sport_type' |
#state ⇒ String
Returns State/province where club is located.
52 |
# File 'lib/strava/models/detailed_club.rb', line 52 property 'state' |
#strava_url ⇒ String
Returns the Strava web URL for this club.
110 111 112 |
# File 'lib/strava/models/detailed_club.rb', line 110 def strava_url "https://www.strava.com/clubs/#{url || id}" end |
#url ⇒ String
Returns Club URL slug.
70 |
# File 'lib/strava/models/detailed_club.rb', line 70 property 'url' |
#verified ⇒ Boolean
Returns Whether club is verified by Strava.
67 |
# File 'lib/strava/models/detailed_club.rb', line 67 property 'verified' |
#website ⇒ String
Returns Club website URL.
103 |
# File 'lib/strava/models/detailed_club.rb', line 103 property 'website' |