sleeper_rb 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (140) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +15 -0
  3. data/.rspec +3 -0
  4. data/.rubocop.yml +18 -0
  5. data/.travis.yml +8 -0
  6. data/CHANGELOG.md +9 -0
  7. data/CODE_OF_CONDUCT.md +84 -0
  8. data/Gemfile +14 -0
  9. data/Gemfile.lock +91 -0
  10. data/LICENSE.txt +21 -0
  11. data/README.md +92 -0
  12. data/Rakefile +24 -0
  13. data/bin/console +15 -0
  14. data/bin/setup +8 -0
  15. data/docs/SleeperRb/BadRequest.html +106 -0
  16. data/docs/SleeperRb/Client.html +354 -0
  17. data/docs/SleeperRb/NotFound.html +106 -0
  18. data/docs/SleeperRb/RateLimitExceeded.html +106 -0
  19. data/docs/SleeperRb/Resources/Avatar.html +231 -0
  20. data/docs/SleeperRb/Resources/Draft/Metadata.html +419 -0
  21. data/docs/SleeperRb/Resources/Draft/Pick/Metadata.html +346 -0
  22. data/docs/SleeperRb/Resources/Draft/Pick.html +430 -0
  23. data/docs/SleeperRb/Resources/Draft/PickArray.html +108 -0
  24. data/docs/SleeperRb/Resources/Draft/Settings.html +361 -0
  25. data/docs/SleeperRb/Resources/Draft.html +560 -0
  26. data/docs/SleeperRb/Resources/DraftArray.html +198 -0
  27. data/docs/SleeperRb/Resources/League/Matchup.html +349 -0
  28. data/docs/SleeperRb/Resources/League/MatchupArray.html +108 -0
  29. data/docs/SleeperRb/Resources/League/Roster/Settings.html +415 -0
  30. data/docs/SleeperRb/Resources/League/Roster.html +409 -0
  31. data/docs/SleeperRb/Resources/League/RosterArray.html +108 -0
  32. data/docs/SleeperRb/Resources/League/ScoringSettings.html +808 -0
  33. data/docs/SleeperRb/Resources/League/Settings.html +648 -0
  34. data/docs/SleeperRb/Resources/League/Transaction/Metadata.html +119 -0
  35. data/docs/SleeperRb/Resources/League/Transaction/Settings.html +140 -0
  36. data/docs/SleeperRb/Resources/League/Transaction/WaiverBudget.html +292 -0
  37. data/docs/SleeperRb/Resources/League/Transaction.html +679 -0
  38. data/docs/SleeperRb/Resources/League/TransactionArray.html +272 -0
  39. data/docs/SleeperRb/Resources/League.html +688 -0
  40. data/docs/SleeperRb/Resources/LeagueArray.html +272 -0
  41. data/docs/SleeperRb/Resources/NflState.html +252 -0
  42. data/docs/SleeperRb/Resources/Player.html +860 -0
  43. data/docs/SleeperRb/Resources/PlayerArray.html +108 -0
  44. data/docs/SleeperRb/Resources/TradedPick.html +345 -0
  45. data/docs/SleeperRb/Resources/TradedPickArray.html +108 -0
  46. data/docs/SleeperRb/Resources/User/Metadata.html +140 -0
  47. data/docs/SleeperRb/Resources/User.html +406 -0
  48. data/docs/SleeperRb/Resources/UserArray.html +108 -0
  49. data/docs/SleeperRb/Resources.html +99 -0
  50. data/docs/SleeperRb/ServerError.html +106 -0
  51. data/docs/SleeperRb/Utilities/ArrayProxy.html +184 -0
  52. data/docs/SleeperRb/Utilities/Cache/ClassMethods.html +326 -0
  53. data/docs/SleeperRb/Utilities/Cache.html +253 -0
  54. data/docs/SleeperRb/Utilities/Request.html +120 -0
  55. data/docs/SleeperRb/Utilities/RosterPosition.html +239 -0
  56. data/docs/SleeperRb/Utilities.html +99 -0
  57. data/docs/SleeperRb.html +113 -0
  58. data/docs/created.rid +38 -0
  59. data/docs/css/fonts.css +167 -0
  60. data/docs/css/rdoc.css +619 -0
  61. data/docs/fonts/Lato-Light.ttf +0 -0
  62. data/docs/fonts/Lato-LightItalic.ttf +0 -0
  63. data/docs/fonts/Lato-Regular.ttf +0 -0
  64. data/docs/fonts/Lato-RegularItalic.ttf +0 -0
  65. data/docs/fonts/SourceCodePro-Bold.ttf +0 -0
  66. data/docs/fonts/SourceCodePro-Regular.ttf +0 -0
  67. data/docs/images/add.png +0 -0
  68. data/docs/images/arrow_up.png +0 -0
  69. data/docs/images/brick.png +0 -0
  70. data/docs/images/brick_link.png +0 -0
  71. data/docs/images/bug.png +0 -0
  72. data/docs/images/bullet_black.png +0 -0
  73. data/docs/images/bullet_toggle_minus.png +0 -0
  74. data/docs/images/bullet_toggle_plus.png +0 -0
  75. data/docs/images/date.png +0 -0
  76. data/docs/images/delete.png +0 -0
  77. data/docs/images/find.png +0 -0
  78. data/docs/images/loadingAnimation.gif +0 -0
  79. data/docs/images/macFFBgHack.png +0 -0
  80. data/docs/images/package.png +0 -0
  81. data/docs/images/page_green.png +0 -0
  82. data/docs/images/page_white_text.png +0 -0
  83. data/docs/images/page_white_width.png +0 -0
  84. data/docs/images/plugin.png +0 -0
  85. data/docs/images/ruby.png +0 -0
  86. data/docs/images/tag_blue.png +0 -0
  87. data/docs/images/tag_green.png +0 -0
  88. data/docs/images/transparent.png +0 -0
  89. data/docs/images/wrench.png +0 -0
  90. data/docs/images/wrench_orange.png +0 -0
  91. data/docs/images/zoom.png +0 -0
  92. data/docs/index.html +171 -0
  93. data/docs/js/darkfish.js +84 -0
  94. data/docs/js/navigation.js +105 -0
  95. data/docs/js/navigation.js.gz +0 -0
  96. data/docs/js/search.js +110 -0
  97. data/docs/js/search_index.js +1 -0
  98. data/docs/js/search_index.js.gz +0 -0
  99. data/docs/js/searcher.js +229 -0
  100. data/docs/js/searcher.js.gz +0 -0
  101. data/docs/table_of_contents.html +770 -0
  102. data/lib/sleeper_rb/client.rb +80 -0
  103. data/lib/sleeper_rb/resources/avatar.rb +43 -0
  104. data/lib/sleeper_rb/resources/draft/metadata.rb +83 -0
  105. data/lib/sleeper_rb/resources/draft/pick/metadata.rb +64 -0
  106. data/lib/sleeper_rb/resources/draft/pick.rb +85 -0
  107. data/lib/sleeper_rb/resources/draft/pick_array.rb +11 -0
  108. data/lib/sleeper_rb/resources/draft/settings.rb +73 -0
  109. data/lib/sleeper_rb/resources/draft.rb +129 -0
  110. data/lib/sleeper_rb/resources/draft_array.rb +25 -0
  111. data/lib/sleeper_rb/resources/league/matchup.rb +66 -0
  112. data/lib/sleeper_rb/resources/league/matchup_array.rb +11 -0
  113. data/lib/sleeper_rb/resources/league/roster/settings.rb +76 -0
  114. data/lib/sleeper_rb/resources/league/roster.rb +73 -0
  115. data/lib/sleeper_rb/resources/league/roster_array.rb +11 -0
  116. data/lib/sleeper_rb/resources/league/scoring_settings.rb +172 -0
  117. data/lib/sleeper_rb/resources/league/settings.rb +148 -0
  118. data/lib/sleeper_rb/resources/league/transaction/metadata.rb +22 -0
  119. data/lib/sleeper_rb/resources/league/transaction/settings.rb +22 -0
  120. data/lib/sleeper_rb/resources/league/transaction/waiver_budget.rb +52 -0
  121. data/lib/sleeper_rb/resources/league/transaction.rb +153 -0
  122. data/lib/sleeper_rb/resources/league/transaction_array.rb +43 -0
  123. data/lib/sleeper_rb/resources/league.rb +197 -0
  124. data/lib/sleeper_rb/resources/league_array.rb +41 -0
  125. data/lib/sleeper_rb/resources/nfl_state.rb +51 -0
  126. data/lib/sleeper_rb/resources/player.rb +189 -0
  127. data/lib/sleeper_rb/resources/player_array.rb +16 -0
  128. data/lib/sleeper_rb/resources/traded_pick.rb +63 -0
  129. data/lib/sleeper_rb/resources/traded_pick_array.rb +9 -0
  130. data/lib/sleeper_rb/resources/user/metadata.rb +20 -0
  131. data/lib/sleeper_rb/resources/user.rb +104 -0
  132. data/lib/sleeper_rb/resources/user_array.rb +9 -0
  133. data/lib/sleeper_rb/utilities/array_proxy.rb +47 -0
  134. data/lib/sleeper_rb/utilities/cache.rb +132 -0
  135. data/lib/sleeper_rb/utilities/request.rb +42 -0
  136. data/lib/sleeper_rb/utilities/roster_position.rb +30 -0
  137. data/lib/sleeper_rb/version.rb +5 -0
  138. data/lib/sleeper_rb.rb +15 -0
  139. data/sleeper_rb.gemspec +35 -0
  140. metadata +185 -0
@@ -0,0 +1,860 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class SleeperRb::Resources::Player - RDoc Documentation</title>
8
+
9
+ <script type="text/javascript">
10
+ var rdoc_rel_prefix = "../../";
11
+ var index_rel_prefix = "../../";
12
+ </script>
13
+
14
+ <script src="../../js/navigation.js" defer></script>
15
+ <script src="../../js/search.js" defer></script>
16
+ <script src="../../js/search_index.js" defer></script>
17
+ <script src="../../js/searcher.js" defer></script>
18
+ <script src="../../js/darkfish.js" defer></script>
19
+
20
+ <link href="../../css/fonts.css" rel="stylesheet">
21
+ <link href="../../css/rdoc.css" rel="stylesheet">
22
+
23
+
24
+
25
+
26
+ <body id="top" role="document" class="class">
27
+ <nav role="navigation">
28
+ <div id="project-navigation">
29
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
30
+ <h2>
31
+ <a href="../../index.html" rel="home">Home</a>
32
+ </h2>
33
+
34
+ <div id="table-of-contents-navigation">
35
+ <a href="../../table_of_contents.html#pages">Pages</a>
36
+ <a href="../../table_of_contents.html#classes">Classes</a>
37
+ <a href="../../table_of_contents.html#methods">Methods</a>
38
+ </div>
39
+ </div>
40
+
41
+ <div id="search-section" role="search" class="project-section initially-hidden">
42
+ <form action="#" method="get" accept-charset="utf-8">
43
+ <div id="search-field-wrapper">
44
+ <input id="search-field" role="combobox" aria-label="Search"
45
+ aria-autocomplete="list" aria-controls="search-results"
46
+ type="text" name="search" placeholder="Search" spellcheck="false"
47
+ title="Type to search, Up and Down to navigate, Enter to load">
48
+ </div>
49
+
50
+ <ul id="search-results" aria-label="Search Results"
51
+ aria-busy="false" aria-expanded="false"
52
+ aria-atomic="false" class="initially-hidden"></ul>
53
+ </form>
54
+ </div>
55
+
56
+ </div>
57
+
58
+
59
+
60
+ <div id="class-metadata">
61
+
62
+ <div id="parent-class-section" class="nav-section">
63
+ <h3>Parent</h3>
64
+
65
+
66
+ <p class="link">Object
67
+
68
+ </div>
69
+
70
+ <div id="includes-section" class="nav-section">
71
+ <h3>Included Modules</h3>
72
+
73
+ <ul class="link-list">
74
+
75
+
76
+ <li><a class="include" href="../Utilities/Cache.html">SleeperRb::Utilities::Cache</a>
77
+
78
+
79
+ </ul>
80
+ </div>
81
+
82
+ <div id="extends-section" class="nav-section">
83
+ <h3>Extended With Modules</h3>
84
+
85
+ <ul class="link-list">
86
+
87
+
88
+ <li><a class="extend" href="../Utilities/Request.html">SleeperRb::Utilities::Request</a>
89
+
90
+
91
+ </ul>
92
+ </div>
93
+
94
+ <!-- Method Quickref -->
95
+ <div id="method-list-section" class="nav-section">
96
+ <h3>Methods</h3>
97
+
98
+ <ul class="link-list" role="directory">
99
+
100
+ <li ><a href="#method-c-all">::all</a>
101
+
102
+ <li ><a href="#method-c-player_hashes">::player_hashes</a>
103
+
104
+ <li ><a href="#method-c-refresh">::refresh</a>
105
+
106
+ <li ><a href="#method-i-fantasy_positions">#fantasy_positions</a>
107
+
108
+ <li ><a href="#method-i-position">#position</a>
109
+
110
+ </ul>
111
+ </div>
112
+
113
+ </div>
114
+ </nav>
115
+
116
+ <main role="main" aria-labelledby="class-SleeperRb::Resources::Player">
117
+ <h1 id="class-SleeperRb::Resources::Player" class="class">
118
+ class SleeperRb::Resources::Player
119
+ </h1>
120
+
121
+ <section class="description">
122
+
123
+ <p>A specific NFL player with general information about roster position, physical attributes, team, etc.</p>
124
+
125
+ </section>
126
+
127
+
128
+ <section id="5Buntitled-5D" class="documentation-section">
129
+
130
+
131
+
132
+
133
+
134
+
135
+
136
+ <section class="attribute-method-details" class="method-section">
137
+ <header>
138
+ <h3>Attributes</h3>
139
+ </header>
140
+
141
+
142
+ <div id="attribute-i-active" class="method-detail">
143
+ <div class="method-heading attribute-method-heading">
144
+ <span class="method-name">active</span><span
145
+ class="attribute-access-type">[R]</span>
146
+ </div>
147
+
148
+ <div class="method-description">
149
+
150
+
151
+
152
+ </div>
153
+ </div>
154
+
155
+ <div id="attribute-i-age" class="method-detail">
156
+ <div class="method-heading attribute-method-heading">
157
+ <span class="method-name">age</span><span
158
+ class="attribute-access-type">[R]</span>
159
+ </div>
160
+
161
+ <div class="method-description">
162
+
163
+
164
+
165
+ </div>
166
+ </div>
167
+
168
+ <div id="attribute-i-birth_city" class="method-detail">
169
+ <div class="method-heading attribute-method-heading">
170
+ <span class="method-name">birth_city</span><span
171
+ class="attribute-access-type">[R]</span>
172
+ </div>
173
+
174
+ <div class="method-description">
175
+
176
+
177
+
178
+ </div>
179
+ </div>
180
+
181
+ <div id="attribute-i-birth_country" class="method-detail">
182
+ <div class="method-heading attribute-method-heading">
183
+ <span class="method-name">birth_country</span><span
184
+ class="attribute-access-type">[R]</span>
185
+ </div>
186
+
187
+ <div class="method-description">
188
+
189
+
190
+
191
+ </div>
192
+ </div>
193
+
194
+ <div id="attribute-i-birth_date" class="method-detail">
195
+ <div class="method-heading attribute-method-heading">
196
+ <span class="method-name">birth_date</span><span
197
+ class="attribute-access-type">[R]</span>
198
+ </div>
199
+
200
+ <div class="method-description">
201
+
202
+
203
+
204
+ </div>
205
+ </div>
206
+
207
+ <div id="attribute-i-birth_state" class="method-detail">
208
+ <div class="method-heading attribute-method-heading">
209
+ <span class="method-name">birth_state</span><span
210
+ class="attribute-access-type">[R]</span>
211
+ </div>
212
+
213
+ <div class="method-description">
214
+
215
+
216
+
217
+ </div>
218
+ </div>
219
+
220
+ <div id="attribute-i-college" class="method-detail">
221
+ <div class="method-heading attribute-method-heading">
222
+ <span class="method-name">college</span><span
223
+ class="attribute-access-type">[R]</span>
224
+ </div>
225
+
226
+ <div class="method-description">
227
+
228
+
229
+
230
+ </div>
231
+ </div>
232
+
233
+ <div id="attribute-i-depth_chart_order" class="method-detail">
234
+ <div class="method-heading attribute-method-heading">
235
+ <span class="method-name">depth_chart_order</span><span
236
+ class="attribute-access-type">[R]</span>
237
+ </div>
238
+
239
+ <div class="method-description">
240
+
241
+
242
+
243
+ </div>
244
+ </div>
245
+
246
+ <div id="attribute-i-depth_chart_position" class="method-detail">
247
+ <div class="method-heading attribute-method-heading">
248
+ <span class="method-name">depth_chart_position</span><span
249
+ class="attribute-access-type">[R]</span>
250
+ </div>
251
+
252
+ <div class="method-description">
253
+
254
+
255
+
256
+ </div>
257
+ </div>
258
+
259
+ <div id="attribute-i-espn_id" class="method-detail">
260
+ <div class="method-heading attribute-method-heading">
261
+ <span class="method-name">espn_id</span><span
262
+ class="attribute-access-type">[R]</span>
263
+ </div>
264
+
265
+ <div class="method-description">
266
+
267
+
268
+
269
+ </div>
270
+ </div>
271
+
272
+ <div id="attribute-i-fantasy_data_id" class="method-detail">
273
+ <div class="method-heading attribute-method-heading">
274
+ <span class="method-name">fantasy_data_id</span><span
275
+ class="attribute-access-type">[R]</span>
276
+ </div>
277
+
278
+ <div class="method-description">
279
+
280
+
281
+
282
+ </div>
283
+ </div>
284
+
285
+ <div id="attribute-i-first_name" class="method-detail">
286
+ <div class="method-heading attribute-method-heading">
287
+ <span class="method-name">first_name</span><span
288
+ class="attribute-access-type">[R]</span>
289
+ </div>
290
+
291
+ <div class="method-description">
292
+
293
+
294
+
295
+ </div>
296
+ </div>
297
+
298
+ <div id="attribute-i-full_name" class="method-detail">
299
+ <div class="method-heading attribute-method-heading">
300
+ <span class="method-name">full_name</span><span
301
+ class="attribute-access-type">[R]</span>
302
+ </div>
303
+
304
+ <div class="method-description">
305
+
306
+
307
+
308
+ </div>
309
+ </div>
310
+
311
+ <div id="attribute-i-gsis_id" class="method-detail">
312
+ <div class="method-heading attribute-method-heading">
313
+ <span class="method-name">gsis_id</span><span
314
+ class="attribute-access-type">[R]</span>
315
+ </div>
316
+
317
+ <div class="method-description">
318
+
319
+
320
+
321
+ </div>
322
+ </div>
323
+
324
+ <div id="attribute-i-hashtag" class="method-detail">
325
+ <div class="method-heading attribute-method-heading">
326
+ <span class="method-name">hashtag</span><span
327
+ class="attribute-access-type">[R]</span>
328
+ </div>
329
+
330
+ <div class="method-description">
331
+
332
+
333
+
334
+ </div>
335
+ </div>
336
+
337
+ <div id="attribute-i-height" class="method-detail">
338
+ <div class="method-heading attribute-method-heading">
339
+ <span class="method-name">height</span><span
340
+ class="attribute-access-type">[R]</span>
341
+ </div>
342
+
343
+ <div class="method-description">
344
+
345
+
346
+
347
+ </div>
348
+ </div>
349
+
350
+ <div id="attribute-i-high_school" class="method-detail">
351
+ <div class="method-heading attribute-method-heading">
352
+ <span class="method-name">high_school</span><span
353
+ class="attribute-access-type">[R]</span>
354
+ </div>
355
+
356
+ <div class="method-description">
357
+
358
+
359
+
360
+ </div>
361
+ </div>
362
+
363
+ <div id="attribute-i-injury_body_part" class="method-detail">
364
+ <div class="method-heading attribute-method-heading">
365
+ <span class="method-name">injury_body_part</span><span
366
+ class="attribute-access-type">[R]</span>
367
+ </div>
368
+
369
+ <div class="method-description">
370
+
371
+
372
+
373
+ </div>
374
+ </div>
375
+
376
+ <div id="attribute-i-injury_notes" class="method-detail">
377
+ <div class="method-heading attribute-method-heading">
378
+ <span class="method-name">injury_notes</span><span
379
+ class="attribute-access-type">[R]</span>
380
+ </div>
381
+
382
+ <div class="method-description">
383
+
384
+
385
+
386
+ </div>
387
+ </div>
388
+
389
+ <div id="attribute-i-injury_start_date" class="method-detail">
390
+ <div class="method-heading attribute-method-heading">
391
+ <span class="method-name">injury_start_date</span><span
392
+ class="attribute-access-type">[R]</span>
393
+ </div>
394
+
395
+ <div class="method-description">
396
+
397
+
398
+
399
+ </div>
400
+ </div>
401
+
402
+ <div id="attribute-i-injury_status" class="method-detail">
403
+ <div class="method-heading attribute-method-heading">
404
+ <span class="method-name">injury_status</span><span
405
+ class="attribute-access-type">[R]</span>
406
+ </div>
407
+
408
+ <div class="method-description">
409
+
410
+
411
+
412
+ </div>
413
+ </div>
414
+
415
+ <div id="attribute-i-last_name" class="method-detail">
416
+ <div class="method-heading attribute-method-heading">
417
+ <span class="method-name">last_name</span><span
418
+ class="attribute-access-type">[R]</span>
419
+ </div>
420
+
421
+ <div class="method-description">
422
+
423
+
424
+
425
+ </div>
426
+ </div>
427
+
428
+ <div id="attribute-i-metadata" class="method-detail">
429
+ <div class="method-heading attribute-method-heading">
430
+ <span class="method-name">metadata</span><span
431
+ class="attribute-access-type">[R]</span>
432
+ </div>
433
+
434
+ <div class="method-description">
435
+
436
+
437
+
438
+ </div>
439
+ </div>
440
+
441
+ <div id="attribute-i-news_updated" class="method-detail">
442
+ <div class="method-heading attribute-method-heading">
443
+ <span class="method-name">news_updated</span><span
444
+ class="attribute-access-type">[R]</span>
445
+ </div>
446
+
447
+ <div class="method-description">
448
+
449
+
450
+
451
+ </div>
452
+ </div>
453
+
454
+ <div id="attribute-i-number" class="method-detail">
455
+ <div class="method-heading attribute-method-heading">
456
+ <span class="method-name">number</span><span
457
+ class="attribute-access-type">[R]</span>
458
+ </div>
459
+
460
+ <div class="method-description">
461
+
462
+
463
+
464
+ </div>
465
+ </div>
466
+
467
+ <div id="attribute-i-pandascore_id" class="method-detail">
468
+ <div class="method-heading attribute-method-heading">
469
+ <span class="method-name">pandascore_id</span><span
470
+ class="attribute-access-type">[R]</span>
471
+ </div>
472
+
473
+ <div class="method-description">
474
+
475
+
476
+
477
+ </div>
478
+ </div>
479
+
480
+ <div id="attribute-i-player_id" class="method-detail">
481
+ <div class="method-heading attribute-method-heading">
482
+ <span class="method-name">player_id</span><span
483
+ class="attribute-access-type">[R]</span>
484
+ </div>
485
+
486
+ <div class="method-description">
487
+
488
+
489
+
490
+ </div>
491
+ </div>
492
+
493
+ <div id="attribute-i-practice_description" class="method-detail">
494
+ <div class="method-heading attribute-method-heading">
495
+ <span class="method-name">practice_description</span><span
496
+ class="attribute-access-type">[R]</span>
497
+ </div>
498
+
499
+ <div class="method-description">
500
+
501
+
502
+
503
+ </div>
504
+ </div>
505
+
506
+ <div id="attribute-i-practice_participation" class="method-detail">
507
+ <div class="method-heading attribute-method-heading">
508
+ <span class="method-name">practice_participation</span><span
509
+ class="attribute-access-type">[R]</span>
510
+ </div>
511
+
512
+ <div class="method-description">
513
+
514
+
515
+
516
+ </div>
517
+ </div>
518
+
519
+ <div id="attribute-i-rotowire_id" class="method-detail">
520
+ <div class="method-heading attribute-method-heading">
521
+ <span class="method-name">rotowire_id</span><span
522
+ class="attribute-access-type">[R]</span>
523
+ </div>
524
+
525
+ <div class="method-description">
526
+
527
+
528
+
529
+ </div>
530
+ </div>
531
+
532
+ <div id="attribute-i-sport" class="method-detail">
533
+ <div class="method-heading attribute-method-heading">
534
+ <span class="method-name">sport</span><span
535
+ class="attribute-access-type">[R]</span>
536
+ </div>
537
+
538
+ <div class="method-description">
539
+
540
+
541
+
542
+ </div>
543
+ </div>
544
+
545
+ <div id="attribute-i-sportradar_id" class="method-detail">
546
+ <div class="method-heading attribute-method-heading">
547
+ <span class="method-name">sportradar_id</span><span
548
+ class="attribute-access-type">[R]</span>
549
+ </div>
550
+
551
+ <div class="method-description">
552
+
553
+
554
+
555
+ </div>
556
+ </div>
557
+
558
+ <div id="attribute-i-stats_id" class="method-detail">
559
+ <div class="method-heading attribute-method-heading">
560
+ <span class="method-name">stats_id</span><span
561
+ class="attribute-access-type">[R]</span>
562
+ </div>
563
+
564
+ <div class="method-description">
565
+
566
+
567
+
568
+ </div>
569
+ </div>
570
+
571
+ <div id="attribute-i-status" class="method-detail">
572
+ <div class="method-heading attribute-method-heading">
573
+ <span class="method-name">status</span><span
574
+ class="attribute-access-type">[R]</span>
575
+ </div>
576
+
577
+ <div class="method-description">
578
+
579
+
580
+
581
+ </div>
582
+ </div>
583
+
584
+ <div id="attribute-i-swish_id" class="method-detail">
585
+ <div class="method-heading attribute-method-heading">
586
+ <span class="method-name">swish_id</span><span
587
+ class="attribute-access-type">[R]</span>
588
+ </div>
589
+
590
+ <div class="method-description">
591
+
592
+
593
+
594
+ </div>
595
+ </div>
596
+
597
+ <div id="attribute-i-team" class="method-detail">
598
+ <div class="method-heading attribute-method-heading">
599
+ <span class="method-name">team</span><span
600
+ class="attribute-access-type">[R]</span>
601
+ </div>
602
+
603
+ <div class="method-description">
604
+
605
+
606
+
607
+ </div>
608
+ </div>
609
+
610
+ <div id="attribute-i-weight" class="method-detail">
611
+ <div class="method-heading attribute-method-heading">
612
+ <span class="method-name">weight</span><span
613
+ class="attribute-access-type">[R]</span>
614
+ </div>
615
+
616
+ <div class="method-description">
617
+
618
+
619
+
620
+ </div>
621
+ </div>
622
+
623
+ <div id="attribute-i-yahoo_id" class="method-detail">
624
+ <div class="method-heading attribute-method-heading">
625
+ <span class="method-name">yahoo_id</span><span
626
+ class="attribute-access-type">[R]</span>
627
+ </div>
628
+
629
+ <div class="method-description">
630
+
631
+
632
+
633
+ </div>
634
+ </div>
635
+
636
+ <div id="attribute-i-years_exp" class="method-detail">
637
+ <div class="method-heading attribute-method-heading">
638
+ <span class="method-name">years_exp</span><span
639
+ class="attribute-access-type">[R]</span>
640
+ </div>
641
+
642
+ <div class="method-description">
643
+
644
+
645
+
646
+ </div>
647
+ </div>
648
+
649
+ </section>
650
+
651
+
652
+
653
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section">
654
+ <header>
655
+ <h3>Public Class Methods</h3>
656
+ </header>
657
+
658
+
659
+ <div id="method-c-all" class="method-detail ">
660
+
661
+ <div class="method-heading">
662
+ <span class="method-name">all</span><span
663
+ class="method-args">()</span>
664
+
665
+ <span class="method-click-advice">click to toggle source</span>
666
+
667
+ </div>
668
+
669
+
670
+ <div class="method-description">
671
+
672
+ <p>Ensuring there is one source of players so the heavy endpoint need not be called frequently.</p>
673
+
674
+ <p>@return [<a href="PlayerArray.html"><code>SleeperRb::Resources::PlayerArray</code></a>]</p>
675
+
676
+
677
+
678
+
679
+ <div class="method-source-code" id="all-source">
680
+ <pre><span class="ruby-comment"># File lib/sleeper_rb/resources/player.rb, line 16</span>
681
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">all</span>
682
+ <span class="ruby-ivar">@all</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">PlayerArray</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">player_hashes</span>.<span class="ruby-identifier">reduce</span>([]) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">array</span>, (<span class="ruby-identifier">_player_id</span>, <span class="ruby-identifier">player_hash</span>)<span class="ruby-operator">|</span>
683
+ <span class="ruby-identifier">array</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">new</span>(<span class="ruby-identifier">player_hash</span>)
684
+ <span class="ruby-keyword">end</span>)
685
+ <span class="ruby-keyword">end</span></pre>
686
+ </div>
687
+
688
+ </div>
689
+
690
+
691
+
692
+
693
+ </div>
694
+
695
+
696
+ <div id="method-c-player_hashes" class="method-detail ">
697
+
698
+ <div class="method-heading">
699
+ <span class="method-name">player_hashes</span><span
700
+ class="method-args">()</span>
701
+
702
+ <span class="method-click-advice">click to toggle source</span>
703
+
704
+ </div>
705
+
706
+
707
+ <div class="method-description">
708
+
709
+
710
+
711
+
712
+
713
+
714
+ <div class="method-source-code" id="player_hashes-source">
715
+ <pre><span class="ruby-comment"># File lib/sleeper_rb/resources/player.rb, line 32</span>
716
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">player_hashes</span>
717
+ <span class="ruby-ivar">@player_hashes</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">retrieve_players!</span>
718
+ <span class="ruby-keyword">end</span></pre>
719
+ </div>
720
+
721
+ </div>
722
+
723
+
724
+
725
+
726
+ </div>
727
+
728
+
729
+ <div id="method-c-refresh" class="method-detail ">
730
+
731
+ <div class="method-heading">
732
+ <span class="method-name">refresh</span><span
733
+ class="method-args">()</span>
734
+
735
+ <span class="method-click-advice">click to toggle source</span>
736
+
737
+ </div>
738
+
739
+
740
+ <div class="method-description">
741
+
742
+ <p>Resets the values for all players.</p>
743
+
744
+ <p>@return [self]</p>
745
+
746
+
747
+
748
+
749
+ <div class="method-source-code" id="refresh-source">
750
+ <pre><span class="ruby-comment"># File lib/sleeper_rb/resources/player.rb, line 26</span>
751
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">refresh</span>
752
+ <span class="ruby-ivar">@all</span> = <span class="ruby-keyword">nil</span>
753
+ <span class="ruby-ivar">@player_hashes</span> = <span class="ruby-keyword">nil</span>
754
+ <span class="ruby-keyword">self</span>
755
+ <span class="ruby-keyword">end</span></pre>
756
+ </div>
757
+
758
+ </div>
759
+
760
+
761
+
762
+
763
+ </div>
764
+
765
+
766
+ </section>
767
+
768
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
769
+ <header>
770
+ <h3>Public Instance Methods</h3>
771
+ </header>
772
+
773
+
774
+ <div id="method-i-fantasy_positions" class="method-detail ">
775
+
776
+ <div class="method-heading">
777
+ <span class="method-name">fantasy_positions</span><span
778
+ class="method-args">()</span>
779
+
780
+ <span class="method-click-advice">click to toggle source</span>
781
+
782
+ </div>
783
+
784
+
785
+ <div class="method-description">
786
+
787
+ <p>All fantasy positions for which the player is eligible.</p>
788
+
789
+ <p>@return [Array&lt;<a href="../Utilities/RosterPosition.html"><code>SleeperRb::Utilities::RosterPosition</code></a>&gt;]</p>
790
+
791
+
792
+
793
+
794
+ <div class="method-source-code" id="fantasy_positions-source">
795
+ <pre><span class="ruby-comment"># File lib/sleeper_rb/resources/player.rb, line 162</span>
796
+ </pre>
797
+ </div>
798
+
799
+ </div>
800
+
801
+
802
+
803
+
804
+ </div>
805
+
806
+
807
+ <div id="method-i-position" class="method-detail ">
808
+
809
+ <div class="method-heading">
810
+ <span class="method-name">position</span><span
811
+ class="method-args">()</span>
812
+
813
+ <span class="method-click-advice">click to toggle source</span>
814
+
815
+ </div>
816
+
817
+
818
+ <div class="method-description">
819
+
820
+ <p>Primary position for the player.</p>
821
+
822
+ <p>@return [<a href="../Utilities/RosterPosition.html"><code>SleeperRb::Utilities::RosterPosition</code></a>]</p>
823
+
824
+
825
+
826
+
827
+ <div class="method-source-code" id="position-source">
828
+ <pre><span class="ruby-comment"># File lib/sleeper_rb/resources/player.rb, line 173</span>
829
+ <span class="ruby-identifier">cached_attr</span> <span class="ruby-value">:hashtag</span>, <span class="ruby-value">:depth_chart_position</span>, <span class="ruby-value">:status</span>, <span class="ruby-value">:sport</span>, <span class="ruby-value">:number</span>, <span class="ruby-value">:injury_start_date</span>, <span class="ruby-value">:weight</span>,
830
+ <span class="ruby-value">:practice_participation</span>, <span class="ruby-value">:sportradar_id</span>, <span class="ruby-value">:team</span>, <span class="ruby-value">:last_name</span>, <span class="ruby-value">:college</span>, <span class="ruby-value">:fantasy_data_id</span>, <span class="ruby-value">:full_name</span>,
831
+ <span class="ruby-value">:injury_status</span>, <span class="ruby-value">:player_id</span>, <span class="ruby-value">:height</span>, <span class="ruby-value">:age</span>, <span class="ruby-value">:stats_id</span>, <span class="ruby-value">:birth_country</span>, <span class="ruby-value">:espn_id</span>, <span class="ruby-value">:first_name</span>, <span class="ruby-value">:active</span>,
832
+ <span class="ruby-value">:depth_chart_order</span>, <span class="ruby-value">:years_exp</span>, <span class="ruby-value">:rotowire_id</span>, <span class="ruby-value">:rotoworld_id</span>, <span class="ruby-value">:yahoo_id</span>, <span class="ruby-value">:pandascore_id</span>, <span class="ruby-value">:news_updated</span>,
833
+ <span class="ruby-value">:birth_city</span>, <span class="ruby-value">:birth_date</span>, <span class="ruby-value">:injury_notes</span>, <span class="ruby-value">:gsis_id</span>, <span class="ruby-value">:birth_state</span>, <span class="ruby-value">:swish_id</span>, <span class="ruby-value">:high_school</span>, <span class="ruby-value">:metadata</span>,
834
+ <span class="ruby-value">:injury_body_part</span>, <span class="ruby-value">:practice_description</span>,
835
+ <span class="ruby-value">fantasy_positions:</span> <span class="ruby-operator">-&gt;</span>(<span class="ruby-identifier">array</span>) { <span class="ruby-identifier">array</span>&amp;.<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">pos</span><span class="ruby-operator">|</span> <span class="ruby-constant">SleeperRb</span><span class="ruby-operator">::</span><span class="ruby-constant">Utilities</span><span class="ruby-operator">::</span><span class="ruby-constant">RosterPosition</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">pos</span>) } },
836
+ <span class="ruby-value">position:</span> <span class="ruby-operator">-&gt;</span>(<span class="ruby-identifier">pos</span>) { <span class="ruby-identifier">pos</span> <span class="ruby-operator">?</span> <span class="ruby-constant">SleeperRb</span><span class="ruby-operator">::</span><span class="ruby-constant">Utilities</span><span class="ruby-operator">::</span><span class="ruby-constant">RosterPosition</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">pos</span>) <span class="ruby-operator">:</span> <span class="ruby-keyword">nil</span> }
837
+ </pre>
838
+ </div>
839
+
840
+ </div>
841
+
842
+
843
+
844
+
845
+ </div>
846
+
847
+
848
+ </section>
849
+
850
+ </section>
851
+
852
+ </main>
853
+
854
+
855
+ <footer id="validator-badges" role="contentinfo">
856
+ <p><a href="https://validator.w3.org/check/referer">Validate</a>
857
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.2.1.
858
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
859
+ </footer>
860
+