Commit 94b94cb
Add comprehensive RDoc documentation across entire codebase
This commit adds complete RDoc documentation to the strava-ruby-client library,
achieving 100% documentation coverage across all classes, modules, methods, and properties.
## API Endpoints Documentation
### Module-Level Documentation Added
- Clubs: Club members, activities, and administrators
- Streams: Time-series activity data (altitude, cadence, heartrate, etc.)
- Routes: Route planning and export (GPX/TCX)
- Uploads: Activity file upload and processing
- SegmentEfforts: Athlete segment attempt tracking
- Gears: Equipment (bikes/shoes) management
- OAuth: Token deauthorization
### Method Parameter Documentation Fixed
Fixed 18 methods with id_or_options parameters to correctly document:
- @param id_or_options [String, Integer, Hash] with proper type signatures
- Added examples showing both calling patterns (ID as arg vs. in hash)
- Affected endpoints: Clubs, Streams, Routes, Uploads, SegmentEfforts, Gears, Segments
### Enhanced Method Documentation
- starred_segments, segment, star_segment: Added @return, @example, @yield tags
- deauthorize: Added complete @param, @return, @example documentation
## Core Infrastructure Documentation
### Web Layer
- Web::Client: Base client class with full method documentation
- Web::Connection: HTTP connection management and Faraday configuration
- Web::Request: GET/POST/PUT/DELETE methods with @param/@return tags
- Web::Response: Response wrapping with method_missing documentation
- RaiseResponseError: Middleware error handling with status code mapping
### Error Classes
- Fault: Base error class with message/headers/errors accessors
- RatelimitError: Rate limit errors with @see links to documentation
- UploadError: Upload processing errors with status information
### Configuration Modules
- Api::Config: API client configuration with examples
- Web::Config: HTTP settings (proxy, SSL, timeouts)
- OAuth::Config: OAuth credentials configuration
- Webhooks::Config: Webhook subscription configuration
- All configs now have configure/config class methods documented
### Utility Classes
- Logger: Default logger with customization examples
- DeepCopyable: Deep copy mixin with usage examples
- Pagination: Collection iteration with method_missing delegation
## Model Documentation
### Properties Documented (221+ total)
Added @return tags with type information and descriptions for all properties in:
**Detailed Models:**
- DetailedActivity (53 properties): All activity metrics, flags, and relationships
- DetailedAthlete (30 properties): Complete athlete profile information
- DetailedSegment (29 properties): Segment location, elevation, and statistics
**Summary Models:**
- SummaryActivity (51 properties): Essential activity information
- SummaryAthlete (14 properties): Basic athlete profile
- Lap (24 properties): Lap metrics and timing
- Route (20 properties): Route planning information
**Other Models:**
- Comment (5 undocumented properties): Reactions, mentions metadata
- Subscription: Webhook subscription details
### Undocumented Properties Marked
All properties not in official Strava API documentation marked with:
- @note Undocumented in official API
- Clear descriptions of observed behavior
- Examples: visibility, location data, heart rate options, leaderboard settings
## Documentation Standards Applied
All documentation follows RDoc conventions:
- @param with types and descriptions
- @option for hash parameters
- @return with return types
- @yield for block parameters
- @example with practical usage
- @see for cross-references to related classes and Strava API docs
- @note for unofficial/undocumented features
- @api private for internal methods
- @raise for exception documentation
## Files Modified
102 files updated with comprehensive RDoc documentation
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 3c3c9f0 commit 94b94cb
File tree
104 files changed
+4477
-266
lines changed- lib/strava
- api
- endpoints
- errors
- models
- mixins
- oauth
- webhooks
- models
- web
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
104 files changed
+4477
-266
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
5 | 32 | | |
6 | 33 | | |
7 | 34 | | |
| |||
16 | 43 | | |
17 | 44 | | |
18 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
19 | 66 | | |
20 | 67 | | |
21 | 68 | | |
22 | 69 | | |
23 | 70 | | |
24 | 71 | | |
25 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
26 | 79 | | |
27 | 80 | | |
28 | 81 | | |
29 | 82 | | |
30 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
31 | 95 | | |
32 | 96 | | |
33 | 97 | | |
34 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
35 | 104 | | |
36 | 105 | | |
37 | 106 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
5 | 20 | | |
6 | 21 | | |
7 | 22 | | |
| 23 | + | |
8 | 24 | | |
9 | 25 | | |
10 | 26 | | |
11 | 27 | | |
12 | 28 | | |
13 | 29 | | |
14 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
15 | 39 | | |
16 | 40 | | |
17 | 41 | | |
18 | 42 | | |
19 | 43 | | |
20 | 44 | | |
21 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
22 | 57 | | |
23 | 58 | | |
24 | 59 | | |
25 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
26 | 66 | | |
27 | 67 | | |
28 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
5 | 22 | | |
6 | 23 | | |
7 | 24 | | |
8 | | - | |
| 25 | + | |
| 26 | + | |
9 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
10 | 41 | | |
11 | 42 | | |
12 | 43 | | |
| |||
0 commit comments