absorb_api 0.1.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 (96) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +8 -0
  3. data/Gemfile +11 -0
  4. data/LICENSE.txt +21 -0
  5. data/README.md +203 -0
  6. data/Rakefile +2 -0
  7. data/absorb_api.gemspec +25 -0
  8. data/bin/console +14 -0
  9. data/bin/setup +8 -0
  10. data/doc/AbsorbApi.html +216 -0
  11. data/doc/AbsorbApi/Base.html +239 -0
  12. data/doc/AbsorbApi/Category.html +173 -0
  13. data/doc/AbsorbApi/Certificate.html +212 -0
  14. data/doc/AbsorbApi/Chapter.html +160 -0
  15. data/doc/AbsorbApi/Collection.html +180 -0
  16. data/doc/AbsorbApi/Configuration.html +188 -0
  17. data/doc/AbsorbApi/Course.html +534 -0
  18. data/doc/AbsorbApi/CourseEnrollment.html +437 -0
  19. data/doc/AbsorbApi/Curriculum.html +498 -0
  20. data/doc/AbsorbApi/Department.html +242 -0
  21. data/doc/AbsorbApi/LessonEnrollment.html +370 -0
  22. data/doc/AbsorbApi/Orm.html +201 -0
  23. data/doc/AbsorbApi/Relations.html +301 -0
  24. data/doc/AbsorbApi/ResourceNotFound.html +102 -0
  25. data/doc/AbsorbApi/RouteNotFound.html +102 -0
  26. data/doc/AbsorbApi/User.html +615 -0
  27. data/doc/AbsorbApi/ValidationError.html +102 -0
  28. data/doc/Gemfile.html +100 -0
  29. data/doc/Gemfile_lock.html +150 -0
  30. data/doc/LICENSE_txt.html +113 -0
  31. data/doc/README_md.html +340 -0
  32. data/doc/Rakefile.html +93 -0
  33. data/doc/absorb_api_gemspec.html +126 -0
  34. data/doc/bin/setup.html +97 -0
  35. data/doc/created.rid +26 -0
  36. data/doc/css/fonts.css +167 -0
  37. data/doc/css/rdoc.css +590 -0
  38. data/doc/fonts/Lato-Light.ttf +0 -0
  39. data/doc/fonts/Lato-LightItalic.ttf +0 -0
  40. data/doc/fonts/Lato-Regular.ttf +0 -0
  41. data/doc/fonts/Lato-RegularItalic.ttf +0 -0
  42. data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
  43. data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
  44. data/doc/images/add.png +0 -0
  45. data/doc/images/arrow_up.png +0 -0
  46. data/doc/images/brick.png +0 -0
  47. data/doc/images/brick_link.png +0 -0
  48. data/doc/images/bug.png +0 -0
  49. data/doc/images/bullet_black.png +0 -0
  50. data/doc/images/bullet_toggle_minus.png +0 -0
  51. data/doc/images/bullet_toggle_plus.png +0 -0
  52. data/doc/images/date.png +0 -0
  53. data/doc/images/delete.png +0 -0
  54. data/doc/images/find.png +0 -0
  55. data/doc/images/loadingAnimation.gif +0 -0
  56. data/doc/images/macFFBgHack.png +0 -0
  57. data/doc/images/package.png +0 -0
  58. data/doc/images/page_green.png +0 -0
  59. data/doc/images/page_white_text.png +0 -0
  60. data/doc/images/page_white_width.png +0 -0
  61. data/doc/images/plugin.png +0 -0
  62. data/doc/images/ruby.png +0 -0
  63. data/doc/images/tag_blue.png +0 -0
  64. data/doc/images/tag_green.png +0 -0
  65. data/doc/images/transparent.png +0 -0
  66. data/doc/images/wrench.png +0 -0
  67. data/doc/images/wrench_orange.png +0 -0
  68. data/doc/images/zoom.png +0 -0
  69. data/doc/index.html +135 -0
  70. data/doc/js/darkfish.js +161 -0
  71. data/doc/js/jquery.js +4 -0
  72. data/doc/js/navigation.js +142 -0
  73. data/doc/js/navigation.js.gz +0 -0
  74. data/doc/js/search.js +109 -0
  75. data/doc/js/search_index.js +1 -0
  76. data/doc/js/search_index.js.gz +0 -0
  77. data/doc/js/searcher.js +228 -0
  78. data/doc/js/searcher.js.gz +0 -0
  79. data/doc/table_of_contents.html +218 -0
  80. data/lib/absorb_api.rb +26 -0
  81. data/lib/absorb_api/base.rb +31 -0
  82. data/lib/absorb_api/category.rb +7 -0
  83. data/lib/absorb_api/certificate.rb +7 -0
  84. data/lib/absorb_api/chapter.rb +7 -0
  85. data/lib/absorb_api/collection.rb +19 -0
  86. data/lib/absorb_api/configuration.rb +21 -0
  87. data/lib/absorb_api/course.rb +24 -0
  88. data/lib/absorb_api/course_enrollment.rb +33 -0
  89. data/lib/absorb_api/curriculum.rb +7 -0
  90. data/lib/absorb_api/department.rb +10 -0
  91. data/lib/absorb_api/lesson_enrollment.rb +5 -0
  92. data/lib/absorb_api/orm.rb +28 -0
  93. data/lib/absorb_api/relations.rb +62 -0
  94. data/lib/absorb_api/user.rb +27 -0
  95. data/lib/absorb_api/version.rb +3 -0
  96. metadata +168 -0
@@ -0,0 +1,102 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class AbsorbApi::ResourceNotFound - RDoc Documentation</title>
8
+
9
+ <script type="text/javascript">
10
+ var rdoc_rel_prefix = "../";
11
+ </script>
12
+
13
+ <script src="../js/jquery.js"></script>
14
+ <script src="../js/darkfish.js"></script>
15
+
16
+ <link href="../css/fonts.css" rel="stylesheet">
17
+ <link href="../css/rdoc.css" rel="stylesheet">
18
+
19
+
20
+
21
+ <body id="top" role="document" class="class">
22
+ <nav role="navigation">
23
+ <div id="project-navigation">
24
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
25
+ <h2>
26
+ <a href="../index.html" rel="home">Home</a>
27
+ </h2>
28
+
29
+ <div id="table-of-contents-navigation">
30
+ <a href="../table_of_contents.html#pages">Pages</a>
31
+ <a href="../table_of_contents.html#classes">Classes</a>
32
+ <a href="../table_of_contents.html#methods">Methods</a>
33
+ </div>
34
+ </div>
35
+
36
+ <div id="search-section" role="search" class="project-section initially-hidden">
37
+ <form action="#" method="get" accept-charset="utf-8">
38
+ <div id="search-field-wrapper">
39
+ <input id="search-field" role="combobox" aria-label="Search"
40
+ aria-autocomplete="list" aria-controls="search-results"
41
+ type="text" name="search" placeholder="Search" spellcheck="false"
42
+ title="Type to search, Up and Down to navigate, Enter to load">
43
+ </div>
44
+
45
+ <ul id="search-results" aria-label="Search Results"
46
+ aria-busy="false" aria-expanded="false"
47
+ aria-atomic="false" class="initially-hidden"></ul>
48
+ </form>
49
+ </div>
50
+
51
+ </div>
52
+
53
+
54
+
55
+ <div id="class-metadata">
56
+
57
+ <div id="parent-class-section" class="nav-section">
58
+ <h3>Parent</h3>
59
+
60
+
61
+ <p class="link">StandardError
62
+
63
+ </div>
64
+
65
+
66
+
67
+
68
+ </div>
69
+ </nav>
70
+
71
+ <main role="main" aria-labelledby="class-AbsorbApi::ResourceNotFound">
72
+ <h1 id="class-AbsorbApi::ResourceNotFound" class="class">
73
+ class AbsorbApi::ResourceNotFound
74
+ </h1>
75
+
76
+ <section class="description">
77
+
78
+ </section>
79
+
80
+
81
+
82
+
83
+ <section id="5Buntitled-5D" class="documentation-section">
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+ </section>
94
+ </main>
95
+
96
+
97
+ <footer id="validator-badges" role="contentinfo">
98
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
99
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.1.
100
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
101
+ </footer>
102
+
@@ -0,0 +1,102 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class AbsorbApi::RouteNotFound - RDoc Documentation</title>
8
+
9
+ <script type="text/javascript">
10
+ var rdoc_rel_prefix = "../";
11
+ </script>
12
+
13
+ <script src="../js/jquery.js"></script>
14
+ <script src="../js/darkfish.js"></script>
15
+
16
+ <link href="../css/fonts.css" rel="stylesheet">
17
+ <link href="../css/rdoc.css" rel="stylesheet">
18
+
19
+
20
+
21
+ <body id="top" role="document" class="class">
22
+ <nav role="navigation">
23
+ <div id="project-navigation">
24
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
25
+ <h2>
26
+ <a href="../index.html" rel="home">Home</a>
27
+ </h2>
28
+
29
+ <div id="table-of-contents-navigation">
30
+ <a href="../table_of_contents.html#pages">Pages</a>
31
+ <a href="../table_of_contents.html#classes">Classes</a>
32
+ <a href="../table_of_contents.html#methods">Methods</a>
33
+ </div>
34
+ </div>
35
+
36
+ <div id="search-section" role="search" class="project-section initially-hidden">
37
+ <form action="#" method="get" accept-charset="utf-8">
38
+ <div id="search-field-wrapper">
39
+ <input id="search-field" role="combobox" aria-label="Search"
40
+ aria-autocomplete="list" aria-controls="search-results"
41
+ type="text" name="search" placeholder="Search" spellcheck="false"
42
+ title="Type to search, Up and Down to navigate, Enter to load">
43
+ </div>
44
+
45
+ <ul id="search-results" aria-label="Search Results"
46
+ aria-busy="false" aria-expanded="false"
47
+ aria-atomic="false" class="initially-hidden"></ul>
48
+ </form>
49
+ </div>
50
+
51
+ </div>
52
+
53
+
54
+
55
+ <div id="class-metadata">
56
+
57
+ <div id="parent-class-section" class="nav-section">
58
+ <h3>Parent</h3>
59
+
60
+
61
+ <p class="link">StandardError
62
+
63
+ </div>
64
+
65
+
66
+
67
+
68
+ </div>
69
+ </nav>
70
+
71
+ <main role="main" aria-labelledby="class-AbsorbApi::RouteNotFound">
72
+ <h1 id="class-AbsorbApi::RouteNotFound" class="class">
73
+ class AbsorbApi::RouteNotFound
74
+ </h1>
75
+
76
+ <section class="description">
77
+
78
+ </section>
79
+
80
+
81
+
82
+
83
+ <section id="5Buntitled-5D" class="documentation-section">
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+ </section>
94
+ </main>
95
+
96
+
97
+ <footer id="validator-badges" role="contentinfo">
98
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
99
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.1.
100
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
101
+ </footer>
102
+
@@ -0,0 +1,615 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class AbsorbApi::User - RDoc Documentation</title>
8
+
9
+ <script type="text/javascript">
10
+ var rdoc_rel_prefix = "../";
11
+ </script>
12
+
13
+ <script src="../js/jquery.js"></script>
14
+ <script src="../js/darkfish.js"></script>
15
+
16
+ <link href="../css/fonts.css" rel="stylesheet">
17
+ <link href="../css/rdoc.css" rel="stylesheet">
18
+
19
+
20
+
21
+ <body id="top" role="document" class="class">
22
+ <nav role="navigation">
23
+ <div id="project-navigation">
24
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
25
+ <h2>
26
+ <a href="../index.html" rel="home">Home</a>
27
+ </h2>
28
+
29
+ <div id="table-of-contents-navigation">
30
+ <a href="../table_of_contents.html#pages">Pages</a>
31
+ <a href="../table_of_contents.html#classes">Classes</a>
32
+ <a href="../table_of_contents.html#methods">Methods</a>
33
+ </div>
34
+ </div>
35
+
36
+ <div id="search-section" role="search" class="project-section initially-hidden">
37
+ <form action="#" method="get" accept-charset="utf-8">
38
+ <div id="search-field-wrapper">
39
+ <input id="search-field" role="combobox" aria-label="Search"
40
+ aria-autocomplete="list" aria-controls="search-results"
41
+ type="text" name="search" placeholder="Search" spellcheck="false"
42
+ title="Type to search, Up and Down to navigate, Enter to load">
43
+ </div>
44
+
45
+ <ul id="search-results" aria-label="Search Results"
46
+ aria-busy="false" aria-expanded="false"
47
+ aria-atomic="false" class="initially-hidden"></ul>
48
+ </form>
49
+ </div>
50
+
51
+ </div>
52
+
53
+
54
+
55
+ <div id="class-metadata">
56
+
57
+ <div id="parent-class-section" class="nav-section">
58
+ <h3>Parent</h3>
59
+
60
+
61
+ <p class="link"><a href="Base.html">AbsorbApi::Base</a>
62
+
63
+ </div>
64
+
65
+ <div id="includes-section" class="nav-section">
66
+ <h3>Included Modules</h3>
67
+
68
+ <ul class="link-list">
69
+
70
+
71
+ <li><a class="include" href="Orm.html">AbsorbApi::Orm</a>
72
+
73
+
74
+
75
+ <li><a class="include" href="Relations.html">AbsorbApi::Relations</a>
76
+
77
+
78
+ </ul>
79
+ </div>
80
+
81
+
82
+ <!-- Method Quickref -->
83
+ <div id="method-list-section" class="nav-section">
84
+ <h3>Methods</h3>
85
+
86
+ <ul class="link-list" role="directory">
87
+
88
+ <li ><a href="#method-c-courses_from_collection">::courses_from_collection</a>
89
+
90
+ </ul>
91
+ </div>
92
+
93
+ </div>
94
+ </nav>
95
+
96
+ <main role="main" aria-labelledby="class-AbsorbApi::User">
97
+ <h1 id="class-AbsorbApi::User" class="class">
98
+ class AbsorbApi::User
99
+ </h1>
100
+
101
+ <section class="description">
102
+
103
+ </section>
104
+
105
+
106
+
107
+
108
+ <section id="5Buntitled-5D" class="documentation-section">
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+ <section class="attribute-method-details" class="method-section">
117
+ <header>
118
+ <h3>Attributes</h3>
119
+ </header>
120
+
121
+
122
+ <div id="attribute-i-active_status" class="method-detail">
123
+ <div class="method-heading attribute-method-heading">
124
+ <span class="method-name">active_status</span><span
125
+ class="attribute-access-type">[RW]</span>
126
+ </div>
127
+
128
+ <div class="method-description">
129
+
130
+
131
+
132
+ </div>
133
+ </div>
134
+
135
+ <div id="attribute-i-address" class="method-detail">
136
+ <div class="method-heading attribute-method-heading">
137
+ <span class="method-name">address</span><span
138
+ class="attribute-access-type">[RW]</span>
139
+ </div>
140
+
141
+ <div class="method-description">
142
+
143
+
144
+
145
+ </div>
146
+ </div>
147
+
148
+ <div id="attribute-i-address2" class="method-detail">
149
+ <div class="method-heading attribute-method-heading">
150
+ <span class="method-name">address2</span><span
151
+ class="attribute-access-type">[RW]</span>
152
+ </div>
153
+
154
+ <div class="method-description">
155
+
156
+
157
+
158
+ </div>
159
+ </div>
160
+
161
+ <div id="attribute-i-cc_email_addresses" class="method-detail">
162
+ <div class="method-heading attribute-method-heading">
163
+ <span class="method-name">cc_email_addresses</span><span
164
+ class="attribute-access-type">[RW]</span>
165
+ </div>
166
+
167
+ <div class="method-description">
168
+
169
+
170
+
171
+ </div>
172
+ </div>
173
+
174
+ <div id="attribute-i-city" class="method-detail">
175
+ <div class="method-heading attribute-method-heading">
176
+ <span class="method-name">city</span><span
177
+ class="attribute-access-type">[RW]</span>
178
+ </div>
179
+
180
+ <div class="method-description">
181
+
182
+
183
+
184
+ </div>
185
+ </div>
186
+
187
+ <div id="attribute-i-country_id" class="method-detail">
188
+ <div class="method-heading attribute-method-heading">
189
+ <span class="method-name">country_id</span><span
190
+ class="attribute-access-type">[RW]</span>
191
+ </div>
192
+
193
+ <div class="method-description">
194
+
195
+
196
+
197
+ </div>
198
+ </div>
199
+
200
+ <div id="attribute-i-custom_fields" class="method-detail">
201
+ <div class="method-heading attribute-method-heading">
202
+ <span class="method-name">custom_fields</span><span
203
+ class="attribute-access-type">[RW]</span>
204
+ </div>
205
+
206
+ <div class="method-description">
207
+
208
+
209
+
210
+ </div>
211
+ </div>
212
+
213
+ <div id="attribute-i-date_hired" class="method-detail">
214
+ <div class="method-heading attribute-method-heading">
215
+ <span class="method-name">date_hired</span><span
216
+ class="attribute-access-type">[RW]</span>
217
+ </div>
218
+
219
+ <div class="method-description">
220
+
221
+
222
+
223
+ </div>
224
+ </div>
225
+
226
+ <div id="attribute-i-date_terminated" class="method-detail">
227
+ <div class="method-heading attribute-method-heading">
228
+ <span class="method-name">date_terminated</span><span
229
+ class="attribute-access-type">[RW]</span>
230
+ </div>
231
+
232
+ <div class="method-description">
233
+
234
+
235
+
236
+ </div>
237
+ </div>
238
+
239
+ <div id="attribute-i-department_id" class="method-detail">
240
+ <div class="method-heading attribute-method-heading">
241
+ <span class="method-name">department_id</span><span
242
+ class="attribute-access-type">[RW]</span>
243
+ </div>
244
+
245
+ <div class="method-description">
246
+
247
+
248
+
249
+ </div>
250
+ </div>
251
+
252
+ <div id="attribute-i-email_address" class="method-detail">
253
+ <div class="method-heading attribute-method-heading">
254
+ <span class="method-name">email_address</span><span
255
+ class="attribute-access-type">[RW]</span>
256
+ </div>
257
+
258
+ <div class="method-description">
259
+
260
+
261
+
262
+ </div>
263
+ </div>
264
+
265
+ <div id="attribute-i-employee_number" class="method-detail">
266
+ <div class="method-heading attribute-method-heading">
267
+ <span class="method-name">employee_number</span><span
268
+ class="attribute-access-type">[RW]</span>
269
+ </div>
270
+
271
+ <div class="method-description">
272
+
273
+
274
+
275
+ </div>
276
+ </div>
277
+
278
+ <div id="attribute-i-external_id" class="method-detail">
279
+ <div class="method-heading attribute-method-heading">
280
+ <span class="method-name">external_id</span><span
281
+ class="attribute-access-type">[RW]</span>
282
+ </div>
283
+
284
+ <div class="method-description">
285
+
286
+
287
+
288
+ </div>
289
+ </div>
290
+
291
+ <div id="attribute-i-first_name" class="method-detail">
292
+ <div class="method-heading attribute-method-heading">
293
+ <span class="method-name">first_name</span><span
294
+ class="attribute-access-type">[RW]</span>
295
+ </div>
296
+
297
+ <div class="method-description">
298
+
299
+
300
+
301
+ </div>
302
+ </div>
303
+
304
+ <div id="attribute-i-gender" class="method-detail">
305
+ <div class="method-heading attribute-method-heading">
306
+ <span class="method-name">gender</span><span
307
+ class="attribute-access-type">[RW]</span>
308
+ </div>
309
+
310
+ <div class="method-description">
311
+
312
+
313
+
314
+ </div>
315
+ </div>
316
+
317
+ <div id="attribute-i-id" class="method-detail">
318
+ <div class="method-heading attribute-method-heading">
319
+ <span class="method-name">id</span><span
320
+ class="attribute-access-type">[RW]</span>
321
+ </div>
322
+
323
+ <div class="method-description">
324
+
325
+
326
+
327
+ </div>
328
+ </div>
329
+
330
+ <div id="attribute-i-is_admin" class="method-detail">
331
+ <div class="method-heading attribute-method-heading">
332
+ <span class="method-name">is_admin</span><span
333
+ class="attribute-access-type">[RW]</span>
334
+ </div>
335
+
336
+ <div class="method-description">
337
+
338
+
339
+
340
+ </div>
341
+ </div>
342
+
343
+ <div id="attribute-i-is_instructor" class="method-detail">
344
+ <div class="method-heading attribute-method-heading">
345
+ <span class="method-name">is_instructor</span><span
346
+ class="attribute-access-type">[RW]</span>
347
+ </div>
348
+
349
+ <div class="method-description">
350
+
351
+
352
+
353
+ </div>
354
+ </div>
355
+
356
+ <div id="attribute-i-is_learner" class="method-detail">
357
+ <div class="method-heading attribute-method-heading">
358
+ <span class="method-name">is_learner</span><span
359
+ class="attribute-access-type">[RW]</span>
360
+ </div>
361
+
362
+ <div class="method-description">
363
+
364
+
365
+
366
+ </div>
367
+ </div>
368
+
369
+ <div id="attribute-i-job_title" class="method-detail">
370
+ <div class="method-heading attribute-method-heading">
371
+ <span class="method-name">job_title</span><span
372
+ class="attribute-access-type">[RW]</span>
373
+ </div>
374
+
375
+ <div class="method-description">
376
+
377
+
378
+
379
+ </div>
380
+ </div>
381
+
382
+ <div id="attribute-i-language_id" class="method-detail">
383
+ <div class="method-heading attribute-method-heading">
384
+ <span class="method-name">language_id</span><span
385
+ class="attribute-access-type">[RW]</span>
386
+ </div>
387
+
388
+ <div class="method-description">
389
+
390
+
391
+
392
+ </div>
393
+ </div>
394
+
395
+ <div id="attribute-i-last_name" class="method-detail">
396
+ <div class="method-heading attribute-method-heading">
397
+ <span class="method-name">last_name</span><span
398
+ class="attribute-access-type">[RW]</span>
399
+ </div>
400
+
401
+ <div class="method-description">
402
+
403
+
404
+
405
+ </div>
406
+ </div>
407
+
408
+ <div id="attribute-i-location" class="method-detail">
409
+ <div class="method-heading attribute-method-heading">
410
+ <span class="method-name">location</span><span
411
+ class="attribute-access-type">[RW]</span>
412
+ </div>
413
+
414
+ <div class="method-description">
415
+
416
+
417
+
418
+ </div>
419
+ </div>
420
+
421
+ <div id="attribute-i-middle_name" class="method-detail">
422
+ <div class="method-heading attribute-method-heading">
423
+ <span class="method-name">middle_name</span><span
424
+ class="attribute-access-type">[RW]</span>
425
+ </div>
426
+
427
+ <div class="method-description">
428
+
429
+
430
+
431
+ </div>
432
+ </div>
433
+
434
+ <div id="attribute-i-notes" class="method-detail">
435
+ <div class="method-heading attribute-method-heading">
436
+ <span class="method-name">notes</span><span
437
+ class="attribute-access-type">[RW]</span>
438
+ </div>
439
+
440
+ <div class="method-description">
441
+
442
+
443
+
444
+ </div>
445
+ </div>
446
+
447
+ <div id="attribute-i-password" class="method-detail">
448
+ <div class="method-heading attribute-method-heading">
449
+ <span class="method-name">password</span><span
450
+ class="attribute-access-type">[RW]</span>
451
+ </div>
452
+
453
+ <div class="method-description">
454
+
455
+
456
+
457
+ </div>
458
+ </div>
459
+
460
+ <div id="attribute-i-phone" class="method-detail">
461
+ <div class="method-heading attribute-method-heading">
462
+ <span class="method-name">phone</span><span
463
+ class="attribute-access-type">[RW]</span>
464
+ </div>
465
+
466
+ <div class="method-description">
467
+
468
+
469
+
470
+ </div>
471
+ </div>
472
+
473
+ <div id="attribute-i-postal_code" class="method-detail">
474
+ <div class="method-heading attribute-method-heading">
475
+ <span class="method-name">postal_code</span><span
476
+ class="attribute-access-type">[RW]</span>
477
+ </div>
478
+
479
+ <div class="method-description">
480
+
481
+
482
+
483
+ </div>
484
+ </div>
485
+
486
+ <div id="attribute-i-province_id" class="method-detail">
487
+ <div class="method-heading attribute-method-heading">
488
+ <span class="method-name">province_id</span><span
489
+ class="attribute-access-type">[RW]</span>
490
+ </div>
491
+
492
+ <div class="method-description">
493
+
494
+
495
+
496
+ </div>
497
+ </div>
498
+
499
+ <div id="attribute-i-reference_number" class="method-detail">
500
+ <div class="method-heading attribute-method-heading">
501
+ <span class="method-name">reference_number</span><span
502
+ class="attribute-access-type">[RW]</span>
503
+ </div>
504
+
505
+ <div class="method-description">
506
+
507
+
508
+
509
+ </div>
510
+ </div>
511
+
512
+ <div id="attribute-i-role_ids" class="method-detail">
513
+ <div class="method-heading attribute-method-heading">
514
+ <span class="method-name">role_ids</span><span
515
+ class="attribute-access-type">[RW]</span>
516
+ </div>
517
+
518
+ <div class="method-description">
519
+
520
+
521
+
522
+ </div>
523
+ </div>
524
+
525
+ <div id="attribute-i-supervisor_id" class="method-detail">
526
+ <div class="method-heading attribute-method-heading">
527
+ <span class="method-name">supervisor_id</span><span
528
+ class="attribute-access-type">[RW]</span>
529
+ </div>
530
+
531
+ <div class="method-description">
532
+
533
+
534
+
535
+ </div>
536
+ </div>
537
+
538
+ <div id="attribute-i-username" class="method-detail">
539
+ <div class="method-heading attribute-method-heading">
540
+ <span class="method-name">username</span><span
541
+ class="attribute-access-type">[RW]</span>
542
+ </div>
543
+
544
+ <div class="method-description">
545
+
546
+
547
+
548
+ </div>
549
+ </div>
550
+
551
+ </section>
552
+
553
+
554
+
555
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section">
556
+ <header>
557
+ <h3>Public Class Methods</h3>
558
+ </header>
559
+
560
+
561
+ <div id="method-c-courses_from_collection" class="method-detail ">
562
+
563
+ <div class="method-heading">
564
+ <span class="method-name">courses_from_collection</span><span
565
+ class="method-args">(users)</span>
566
+
567
+ <span class="method-click-advice">click to toggle source</span>
568
+
569
+ </div>
570
+
571
+
572
+ <div class="method-description">
573
+
574
+ <p>gets all associated courses given a collection of users all calls are
575
+ called in parallel users are chunked in groups of 105 to keep typhoeus from
576
+ getting bogged down</p>
577
+
578
+
579
+
580
+
581
+ <div class="method-source-code" id="courses_from_collection-source">
582
+ <pre><span class="ruby-comment"># File lib/absorb_api/user.rb, line 15</span>
583
+ <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">courses_from_collection</span>(<span class="ruby-identifier">users</span>)
584
+ <span class="ruby-identifier">courses</span> = []
585
+ <span class="ruby-identifier">users</span>.<span class="ruby-identifier">each_slice</span>(<span class="ruby-value">105</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">user_slice</span><span class="ruby-operator">|</span>
586
+ <span class="ruby-identifier">api</span>.<span class="ruby-identifier">in_parallel</span> <span class="ruby-keyword">do</span>
587
+ <span class="ruby-identifier">user_slice</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">user</span><span class="ruby-operator">|</span>
588
+ <span class="ruby-identifier">courses</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">api</span>.<span class="ruby-identifier">get</span>(<span class="ruby-node">&quot;users/#{user.id}/courses&quot;</span>)
589
+ <span class="ruby-keyword">end</span>
590
+ <span class="ruby-keyword">end</span>
591
+ <span class="ruby-keyword">end</span>
592
+ <span class="ruby-identifier">courses</span>.<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">response</span><span class="ruby-operator">|</span> <span class="ruby-identifier">response</span>.<span class="ruby-identifier">body</span>.<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">body</span><span class="ruby-operator">|</span> <span class="ruby-constant">Course</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">body</span>) } }.<span class="ruby-identifier">flatten</span>
593
+ <span class="ruby-keyword">end</span></pre>
594
+ </div>
595
+
596
+ </div>
597
+
598
+
599
+
600
+
601
+ </div>
602
+
603
+
604
+ </section>
605
+
606
+ </section>
607
+ </main>
608
+
609
+
610
+ <footer id="validator-badges" role="contentinfo">
611
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
612
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.1.
613
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
614
+ </footer>
615
+