Class: Strava::Models::SummaryClub
- Inherits:
-
Response
- Object
- Hashie::Trash
- Strava::Model
- Response
- Strava::Models::SummaryClub
- Defined in:
- lib/strava/models/summary_club.rb
Overview
Represents summary information about a Strava club.
Contains basic club information without detailed membership data. This is typically returned when listing athlete's clubs or as a reference within other models.
Instance Method Summary collapse
-
#activity_types ⇒ Array<String>
List of activity types the club supports.
-
#activity_types_icon ⇒ String
Icon representing the activity types.
-
#city ⇒ String
City where club is located.
-
#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.
-
#dimensions ⇒ Array<Integer>
Dimensions of cover photo [width, height].
-
#featured ⇒ Boolean
Whether club is featured by Strava.
-
#id ⇒ Integer
Club identifier.
-
#localized_sport_type ⇒ String
Localized sport type string.
-
#member_count ⇒ Integer
Number of club members.
-
#name ⇒ String
Club name.
-
#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.
Instance Method Details
#activity_types ⇒ Array<String>
Returns List of activity types the club supports.
45 |
# File 'lib/strava/models/summary_club.rb', line 45 property 'activity_types' |
#activity_types_icon ⇒ String
Returns Icon representing the activity types.
75 |
# File 'lib/strava/models/summary_club.rb', line 75 property 'activity_types_icon' |
#city ⇒ String
Returns City where club is located.
48 |
# File 'lib/strava/models/summary_club.rb', line 48 property 'city' |
#country ⇒ String
Returns Country where club is located.
54 |
# File 'lib/strava/models/summary_club.rb', line 54 property 'country' |
#cover_photo ⇒ String
Returns URL to club cover photo.
36 |
# File 'lib/strava/models/summary_club.rb', line 36 property 'cover_photo' |
#cover_photo_small ⇒ String
Returns URL to smaller club cover photo.
39 |
# File 'lib/strava/models/summary_club.rb', line 39 property 'cover_photo_small' |
#dimensions ⇒ Array<Integer>
Returns Dimensions of cover photo [width, height].
78 |
# File 'lib/strava/models/summary_club.rb', line 78 property 'dimensions' |
#featured ⇒ Boolean
Returns Whether club is featured by Strava.
63 |
# File 'lib/strava/models/summary_club.rb', line 63 property 'featured' |
#id ⇒ Integer
Returns Club identifier.
24 |
# File 'lib/strava/models/summary_club.rb', line 24 property 'id' |
#localized_sport_type ⇒ String
Returns Localized sport type string.
81 |
# File 'lib/strava/models/summary_club.rb', line 81 property 'localized_sport_type' |
#member_count ⇒ Integer
Returns Number of club members.
60 |
# File 'lib/strava/models/summary_club.rb', line 60 property 'member_count' |
#name ⇒ String
Returns Club name.
30 |
# File 'lib/strava/models/summary_club.rb', line 30 property 'name' |
#private ⇒ Boolean
Returns Whether club is private.
57 |
# File 'lib/strava/models/summary_club.rb', line 57 property 'private' |
#profile ⇒ String
Returns URL to full-sized profile picture.
72 |
# File 'lib/strava/models/summary_club.rb', line 72 property 'profile' |
#profile_medium ⇒ String
Returns URL to medium-sized profile picture.
33 |
# File 'lib/strava/models/summary_club.rb', line 33 property 'profile_medium' |
#resource_state ⇒ Integer
Returns Resource state indicator (1=meta, 2=summary, 3=detailed).
27 |
# File 'lib/strava/models/summary_club.rb', line 27 property 'resource_state' |
#sport_type ⇒ String
Returns Primary sport type (e.g., "cycling", "running", "other").
42 |
# File 'lib/strava/models/summary_club.rb', line 42 property 'sport_type' |
#state ⇒ String
Returns State/province where club is located.
51 |
# File 'lib/strava/models/summary_club.rb', line 51 property 'state' |
#strava_url ⇒ String
Returns the Strava web URL for this club.
88 89 90 |
# File 'lib/strava/models/summary_club.rb', line 88 def strava_url "https://www.strava.com/clubs/#{url || id}" end |
#url ⇒ String
Returns Club URL slug.
69 |
# File 'lib/strava/models/summary_club.rb', line 69 property 'url' |
#verified ⇒ Boolean
Returns Whether club is verified by Strava.
66 |
# File 'lib/strava/models/summary_club.rb', line 66 property 'verified' |