File tree Expand file tree Collapse file tree 3 files changed +40
-0
lines changed
strava/api/client/endpoints/athletes Expand file tree Collapse file tree 3 files changed +40
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,11 @@ class SummaryClub < Strava::Models::Response
2020 property 'featured'
2121 property 'verified'
2222 property 'url'
23+ # undocumented
24+ property 'profile'
25+ property 'activity_types_icon'
26+ property 'dimensions'
27+ property 'localized_sport_type'
2328
2429 def strava_url
2530 "https://www.strava.com/clubs/#{ url || id } "
Original file line number Diff line number Diff line change 1+ {
2+ "id" : 108605 ,
3+ "resource_state" : 2 ,
4+ "name" : " New York Road Runners" ,
5+ "profile_medium" : " https://dgalywyr863hv.cloudfront.net/pictures/clubs/108605/8433029/2/medium.jpg" ,
6+ "profile" : " https://dgalywyr863hv.cloudfront.net/pictures/clubs/108605/8433029/2/large.jpg" ,
7+ "cover_photo" : " https://dgalywyr863hv.cloudfront.net/pictures/clubs/108605/5794562/3/large.jpg" ,
8+ "cover_photo_small" : " https://dgalywyr863hv.cloudfront.net/pictures/clubs/108605/5794562/3/small.jpg" ,
9+ "activity_types" : [
10+ " Run" ,
11+ " VirtualRun" ,
12+ " Wheelchair"
13+ ],
14+ "activity_types_icon" : " sports_run_normal" ,
15+ "dimensions" : [
16+ " distance" ,
17+ " num_activities" ,
18+ " best_activities_distance" ,
19+ " elev_gain" ,
20+ " moving_time" ,
21+ " velocity"
22+ ],
23+ "sport_type" : " running" ,
24+ "localized_sport_type" : " Running" ,
25+ "city" : " New York" ,
26+ "state" : " New York" ,
27+ "country" : " United States" ,
28+ "private" : false ,
29+ "member_count" : 327744 ,
30+ "featured" : false ,
31+ "verified" : true ,
32+ "url" : " nyrr"
33+ }
Original file line number Diff line number Diff line change 1414 club = clubs . first
1515 expect ( club ) . to be_a Strava ::Models ::SummaryClub
1616 expect ( club . name ) . to eq 'New York Road Runners'
17+ expect ( club . dimensions ) . to eq %w[ distance num_activities best_activities_distance elev_gain moving_time velocity ]
18+ expect ( club . profile ) . to eq 'https://dgalywyr863hv.cloudfront.net/pictures/clubs/108605/8433029/2/large.jpg'
1719 expect ( club . strava_url ) . to eq 'https://www.strava.com/clubs/nyrr'
1820 shoes = athlete . shoes
1921 expect ( shoes ) . to be_a Enumerable
You can’t perform that action at this time.
0 commit comments