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.
- checksums.yaml +7 -0
- data/.gitignore +8 -0
- data/Gemfile +11 -0
- data/LICENSE.txt +21 -0
- data/README.md +203 -0
- data/Rakefile +2 -0
- data/absorb_api.gemspec +25 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/doc/AbsorbApi.html +216 -0
- data/doc/AbsorbApi/Base.html +239 -0
- data/doc/AbsorbApi/Category.html +173 -0
- data/doc/AbsorbApi/Certificate.html +212 -0
- data/doc/AbsorbApi/Chapter.html +160 -0
- data/doc/AbsorbApi/Collection.html +180 -0
- data/doc/AbsorbApi/Configuration.html +188 -0
- data/doc/AbsorbApi/Course.html +534 -0
- data/doc/AbsorbApi/CourseEnrollment.html +437 -0
- data/doc/AbsorbApi/Curriculum.html +498 -0
- data/doc/AbsorbApi/Department.html +242 -0
- data/doc/AbsorbApi/LessonEnrollment.html +370 -0
- data/doc/AbsorbApi/Orm.html +201 -0
- data/doc/AbsorbApi/Relations.html +301 -0
- data/doc/AbsorbApi/ResourceNotFound.html +102 -0
- data/doc/AbsorbApi/RouteNotFound.html +102 -0
- data/doc/AbsorbApi/User.html +615 -0
- data/doc/AbsorbApi/ValidationError.html +102 -0
- data/doc/Gemfile.html +100 -0
- data/doc/Gemfile_lock.html +150 -0
- data/doc/LICENSE_txt.html +113 -0
- data/doc/README_md.html +340 -0
- data/doc/Rakefile.html +93 -0
- data/doc/absorb_api_gemspec.html +126 -0
- data/doc/bin/setup.html +97 -0
- data/doc/created.rid +26 -0
- data/doc/css/fonts.css +167 -0
- data/doc/css/rdoc.css +590 -0
- data/doc/fonts/Lato-Light.ttf +0 -0
- data/doc/fonts/Lato-LightItalic.ttf +0 -0
- data/doc/fonts/Lato-Regular.ttf +0 -0
- data/doc/fonts/Lato-RegularItalic.ttf +0 -0
- data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
- data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
- data/doc/images/add.png +0 -0
- data/doc/images/arrow_up.png +0 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/transparent.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +135 -0
- data/doc/js/darkfish.js +161 -0
- data/doc/js/jquery.js +4 -0
- data/doc/js/navigation.js +142 -0
- data/doc/js/navigation.js.gz +0 -0
- data/doc/js/search.js +109 -0
- data/doc/js/search_index.js +1 -0
- data/doc/js/search_index.js.gz +0 -0
- data/doc/js/searcher.js +228 -0
- data/doc/js/searcher.js.gz +0 -0
- data/doc/table_of_contents.html +218 -0
- data/lib/absorb_api.rb +26 -0
- data/lib/absorb_api/base.rb +31 -0
- data/lib/absorb_api/category.rb +7 -0
- data/lib/absorb_api/certificate.rb +7 -0
- data/lib/absorb_api/chapter.rb +7 -0
- data/lib/absorb_api/collection.rb +19 -0
- data/lib/absorb_api/configuration.rb +21 -0
- data/lib/absorb_api/course.rb +24 -0
- data/lib/absorb_api/course_enrollment.rb +33 -0
- data/lib/absorb_api/curriculum.rb +7 -0
- data/lib/absorb_api/department.rb +10 -0
- data/lib/absorb_api/lesson_enrollment.rb +5 -0
- data/lib/absorb_api/orm.rb +28 -0
- data/lib/absorb_api/relations.rb +62 -0
- data/lib/absorb_api/user.rb +27 -0
- data/lib/absorb_api/version.rb +3 -0
- metadata +168 -0
|
@@ -0,0 +1,437 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
|
|
3
|
+
<html>
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="UTF-8">
|
|
6
|
+
|
|
7
|
+
<title>class AbsorbApi::CourseEnrollment - 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="Relations.html">AbsorbApi::Relations</a>
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
</ul>
|
|
75
|
+
</div>
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
<!-- Method Quickref -->
|
|
79
|
+
<div id="method-list-section" class="nav-section">
|
|
80
|
+
<h3>Methods</h3>
|
|
81
|
+
|
|
82
|
+
<ul class="link-list" role="directory">
|
|
83
|
+
|
|
84
|
+
<li ><a href="#method-c-lessons_from_collection">::lessons_from_collection</a>
|
|
85
|
+
|
|
86
|
+
<li ><a href="#method-i-lessons">#lessons</a>
|
|
87
|
+
|
|
88
|
+
</ul>
|
|
89
|
+
</div>
|
|
90
|
+
|
|
91
|
+
</div>
|
|
92
|
+
</nav>
|
|
93
|
+
|
|
94
|
+
<main role="main" aria-labelledby="class-AbsorbApi::CourseEnrollment">
|
|
95
|
+
<h1 id="class-AbsorbApi::CourseEnrollment" class="class">
|
|
96
|
+
class AbsorbApi::CourseEnrollment
|
|
97
|
+
</h1>
|
|
98
|
+
|
|
99
|
+
<section class="description">
|
|
100
|
+
|
|
101
|
+
</section>
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
<section class="attribute-method-details" class="method-section">
|
|
115
|
+
<header>
|
|
116
|
+
<h3>Attributes</h3>
|
|
117
|
+
</header>
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
<div id="attribute-i-accepted_terms_and_conditions" class="method-detail">
|
|
121
|
+
<div class="method-heading attribute-method-heading">
|
|
122
|
+
<span class="method-name">accepted_terms_and_conditions</span><span
|
|
123
|
+
class="attribute-access-type">[RW]</span>
|
|
124
|
+
</div>
|
|
125
|
+
|
|
126
|
+
<div class="method-description">
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
</div>
|
|
131
|
+
</div>
|
|
132
|
+
|
|
133
|
+
<div id="attribute-i-certificate_id" class="method-detail">
|
|
134
|
+
<div class="method-heading attribute-method-heading">
|
|
135
|
+
<span class="method-name">certificate_id</span><span
|
|
136
|
+
class="attribute-access-type">[RW]</span>
|
|
137
|
+
</div>
|
|
138
|
+
|
|
139
|
+
<div class="method-description">
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
</div>
|
|
144
|
+
</div>
|
|
145
|
+
|
|
146
|
+
<div id="attribute-i-course_id" class="method-detail">
|
|
147
|
+
<div class="method-heading attribute-method-heading">
|
|
148
|
+
<span class="method-name">course_id</span><span
|
|
149
|
+
class="attribute-access-type">[RW]</span>
|
|
150
|
+
</div>
|
|
151
|
+
|
|
152
|
+
<div class="method-description">
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
</div>
|
|
157
|
+
</div>
|
|
158
|
+
|
|
159
|
+
<div id="attribute-i-course_name" class="method-detail">
|
|
160
|
+
<div class="method-heading attribute-method-heading">
|
|
161
|
+
<span class="method-name">course_name</span><span
|
|
162
|
+
class="attribute-access-type">[RW]</span>
|
|
163
|
+
</div>
|
|
164
|
+
|
|
165
|
+
<div class="method-description">
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
</div>
|
|
170
|
+
</div>
|
|
171
|
+
|
|
172
|
+
<div id="attribute-i-course_version_id" class="method-detail">
|
|
173
|
+
<div class="method-heading attribute-method-heading">
|
|
174
|
+
<span class="method-name">course_version_id</span><span
|
|
175
|
+
class="attribute-access-type">[RW]</span>
|
|
176
|
+
</div>
|
|
177
|
+
|
|
178
|
+
<div class="method-description">
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
</div>
|
|
183
|
+
</div>
|
|
184
|
+
|
|
185
|
+
<div id="attribute-i-credits" class="method-detail">
|
|
186
|
+
<div class="method-heading attribute-method-heading">
|
|
187
|
+
<span class="method-name">credits</span><span
|
|
188
|
+
class="attribute-access-type">[RW]</span>
|
|
189
|
+
</div>
|
|
190
|
+
|
|
191
|
+
<div class="method-description">
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
</div>
|
|
196
|
+
</div>
|
|
197
|
+
|
|
198
|
+
<div id="attribute-i-date_completed" class="method-detail">
|
|
199
|
+
<div class="method-heading attribute-method-heading">
|
|
200
|
+
<span class="method-name">date_completed</span><span
|
|
201
|
+
class="attribute-access-type">[RW]</span>
|
|
202
|
+
</div>
|
|
203
|
+
|
|
204
|
+
<div class="method-description">
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
</div>
|
|
209
|
+
</div>
|
|
210
|
+
|
|
211
|
+
<div id="attribute-i-date_started" class="method-detail">
|
|
212
|
+
<div class="method-heading attribute-method-heading">
|
|
213
|
+
<span class="method-name">date_started</span><span
|
|
214
|
+
class="attribute-access-type">[RW]</span>
|
|
215
|
+
</div>
|
|
216
|
+
|
|
217
|
+
<div class="method-description">
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
</div>
|
|
222
|
+
</div>
|
|
223
|
+
|
|
224
|
+
<div id="attribute-i-enrollment_key_id" class="method-detail">
|
|
225
|
+
<div class="method-heading attribute-method-heading">
|
|
226
|
+
<span class="method-name">enrollment_key_id</span><span
|
|
227
|
+
class="attribute-access-type">[RW]</span>
|
|
228
|
+
</div>
|
|
229
|
+
|
|
230
|
+
<div class="method-description">
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
</div>
|
|
235
|
+
</div>
|
|
236
|
+
|
|
237
|
+
<div id="attribute-i-full_name" class="method-detail">
|
|
238
|
+
<div class="method-heading attribute-method-heading">
|
|
239
|
+
<span class="method-name">full_name</span><span
|
|
240
|
+
class="attribute-access-type">[RW]</span>
|
|
241
|
+
</div>
|
|
242
|
+
|
|
243
|
+
<div class="method-description">
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
</div>
|
|
248
|
+
</div>
|
|
249
|
+
|
|
250
|
+
<div id="attribute-i-id" class="method-detail">
|
|
251
|
+
<div class="method-heading attribute-method-heading">
|
|
252
|
+
<span class="method-name">id</span><span
|
|
253
|
+
class="attribute-access-type">[RW]</span>
|
|
254
|
+
</div>
|
|
255
|
+
|
|
256
|
+
<div class="method-description">
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
</div>
|
|
261
|
+
</div>
|
|
262
|
+
|
|
263
|
+
<div id="attribute-i-progress" class="method-detail">
|
|
264
|
+
<div class="method-heading attribute-method-heading">
|
|
265
|
+
<span class="method-name">progress</span><span
|
|
266
|
+
class="attribute-access-type">[RW]</span>
|
|
267
|
+
</div>
|
|
268
|
+
|
|
269
|
+
<div class="method-description">
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
</div>
|
|
274
|
+
</div>
|
|
275
|
+
|
|
276
|
+
<div id="attribute-i-score" class="method-detail">
|
|
277
|
+
<div class="method-heading attribute-method-heading">
|
|
278
|
+
<span class="method-name">score</span><span
|
|
279
|
+
class="attribute-access-type">[RW]</span>
|
|
280
|
+
</div>
|
|
281
|
+
|
|
282
|
+
<div class="method-description">
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
</div>
|
|
287
|
+
</div>
|
|
288
|
+
|
|
289
|
+
<div id="attribute-i-status" class="method-detail">
|
|
290
|
+
<div class="method-heading attribute-method-heading">
|
|
291
|
+
<span class="method-name">status</span><span
|
|
292
|
+
class="attribute-access-type">[RW]</span>
|
|
293
|
+
</div>
|
|
294
|
+
|
|
295
|
+
<div class="method-description">
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
</div>
|
|
300
|
+
</div>
|
|
301
|
+
|
|
302
|
+
<div id="attribute-i-time_spent" class="method-detail">
|
|
303
|
+
<div class="method-heading attribute-method-heading">
|
|
304
|
+
<span class="method-name">time_spent</span><span
|
|
305
|
+
class="attribute-access-type">[RW]</span>
|
|
306
|
+
</div>
|
|
307
|
+
|
|
308
|
+
<div class="method-description">
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
</div>
|
|
313
|
+
</div>
|
|
314
|
+
|
|
315
|
+
<div id="attribute-i-user_id" class="method-detail">
|
|
316
|
+
<div class="method-heading attribute-method-heading">
|
|
317
|
+
<span class="method-name">user_id</span><span
|
|
318
|
+
class="attribute-access-type">[RW]</span>
|
|
319
|
+
</div>
|
|
320
|
+
|
|
321
|
+
<div class="method-description">
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
</div>
|
|
326
|
+
</div>
|
|
327
|
+
|
|
328
|
+
</section>
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
|
333
|
+
<header>
|
|
334
|
+
<h3>Public Class Methods</h3>
|
|
335
|
+
</header>
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
<div id="method-c-lessons_from_collection" class="method-detail ">
|
|
339
|
+
|
|
340
|
+
<div class="method-heading">
|
|
341
|
+
<span class="method-name">lessons_from_collection</span><span
|
|
342
|
+
class="method-args">(course_enrollments, modifiedSince)</span>
|
|
343
|
+
|
|
344
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
345
|
+
|
|
346
|
+
</div>
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
<div class="method-description">
|
|
350
|
+
|
|
351
|
+
<p>gets all associated lessons given a collection of enrollments all calls are
|
|
352
|
+
called in parallel enrollments are chunked in groups of 105 to keep
|
|
353
|
+
typhoeus from getting bogged down modifiedSince must be a DateTime object</p>
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
<div class="method-source-code" id="lessons_from_collection-source">
|
|
359
|
+
<pre><span class="ruby-comment"># File lib/absorb_api/course_enrollment.rb, line 19</span>
|
|
360
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">lessons_from_collection</span>(<span class="ruby-identifier">course_enrollments</span>, <span class="ruby-identifier">modifiedSince</span>)
|
|
361
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">modifiedSince</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">DateTime</span>
|
|
362
|
+
<span class="ruby-identifier">lessons</span> = []
|
|
363
|
+
<span class="ruby-identifier">course_enrollments</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">enrollment_slice</span><span class="ruby-operator">|</span>
|
|
364
|
+
<span class="ruby-identifier">api</span>.<span class="ruby-identifier">in_parallel</span> <span class="ruby-keyword">do</span>
|
|
365
|
+
<span class="ruby-identifier">enrollment_slice</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">enrollment</span><span class="ruby-operator">|</span>
|
|
366
|
+
<span class="ruby-identifier">lessons</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">api</span>.<span class="ruby-identifier">get</span>(<span class="ruby-node">"users/#{enrollment.user_id}/enrollments/#{enrollment.course_id}/lessons"</span>, { <span class="ruby-string">"modifiedSince"</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">modifiedSince</span>.<span class="ruby-identifier">to_s</span>})
|
|
367
|
+
<span class="ruby-keyword">end</span>
|
|
368
|
+
<span class="ruby-keyword">end</span>
|
|
369
|
+
<span class="ruby-keyword">end</span>
|
|
370
|
+
<span class="ruby-identifier">lessons</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">LessonEnrollment</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">body</span>) } }.<span class="ruby-identifier">flatten</span>.<span class="ruby-identifier">reject</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">lesson</span><span class="ruby-operator">|</span> <span class="ruby-constant">AbsorbApi</span>.<span class="ruby-identifier">configuration</span>.<span class="ruby-identifier">ignored_lesson_types</span>.<span class="ruby-identifier">include?</span> <span class="ruby-identifier">lesson</span>.<span class="ruby-identifier">type</span> }
|
|
371
|
+
<span class="ruby-keyword">end</span>
|
|
372
|
+
<span class="ruby-keyword">end</span></pre>
|
|
373
|
+
</div>
|
|
374
|
+
|
|
375
|
+
</div>
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
</div>
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
</section>
|
|
384
|
+
|
|
385
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
|
386
|
+
<header>
|
|
387
|
+
<h3>Public Instance Methods</h3>
|
|
388
|
+
</header>
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
<div id="method-i-lessons" class="method-detail ">
|
|
392
|
+
|
|
393
|
+
<div class="method-heading">
|
|
394
|
+
<span class="method-name">lessons</span><span
|
|
395
|
+
class="method-args">()</span>
|
|
396
|
+
|
|
397
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
398
|
+
|
|
399
|
+
</div>
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
<div class="method-description">
|
|
403
|
+
|
|
404
|
+
<p>has_many :lessons, klass: :lesson_enrollment</p>
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
<div class="method-source-code" id="lessons-source">
|
|
410
|
+
<pre><span class="ruby-comment"># File lib/absorb_api/course_enrollment.rb, line 9</span>
|
|
411
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">lessons</span>
|
|
412
|
+
<span class="ruby-identifier">api</span>.<span class="ruby-identifier">get</span>(<span class="ruby-node">"users/#{self.user_id}/enrollments/#{self.course_id}/lessons"</span>, { <span class="ruby-string">"modifiedSince"</span> =<span class="ruby-operator">></span> <span class="ruby-string">"2016-01-01"</span>}).<span class="ruby-identifier">body</span>.<span class="ruby-identifier">map!</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">lesson_attributes</span><span class="ruby-operator">|</span>
|
|
413
|
+
<span class="ruby-constant">LessonEnrollment</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">lesson_attributes</span>)
|
|
414
|
+
<span class="ruby-keyword">end</span>
|
|
415
|
+
<span class="ruby-keyword">end</span></pre>
|
|
416
|
+
</div>
|
|
417
|
+
|
|
418
|
+
</div>
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
</div>
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
</section>
|
|
427
|
+
|
|
428
|
+
</section>
|
|
429
|
+
</main>
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+
<footer id="validator-badges" role="contentinfo">
|
|
433
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
|
434
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.1.
|
|
435
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
|
436
|
+
</footer>
|
|
437
|
+
|
|
@@ -0,0 +1,498 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
|
|
3
|
+
<html>
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="UTF-8">
|
|
6
|
+
|
|
7
|
+
<title>class AbsorbApi::Curriculum - 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
|
+
</ul>
|
|
75
|
+
</div>
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
</div>
|
|
80
|
+
</nav>
|
|
81
|
+
|
|
82
|
+
<main role="main" aria-labelledby="class-AbsorbApi::Curriculum">
|
|
83
|
+
<h1 id="class-AbsorbApi::Curriculum" class="class">
|
|
84
|
+
class AbsorbApi::Curriculum
|
|
85
|
+
</h1>
|
|
86
|
+
|
|
87
|
+
<section class="description">
|
|
88
|
+
|
|
89
|
+
</section>
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
<section class="attribute-method-details" class="method-section">
|
|
103
|
+
<header>
|
|
104
|
+
<h3>Attributes</h3>
|
|
105
|
+
</header>
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
<div id="attribute-i-access_date" class="method-detail">
|
|
109
|
+
<div class="method-heading attribute-method-heading">
|
|
110
|
+
<span class="method-name">access_date</span><span
|
|
111
|
+
class="attribute-access-type">[RW]</span>
|
|
112
|
+
</div>
|
|
113
|
+
|
|
114
|
+
<div class="method-description">
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
</div>
|
|
119
|
+
</div>
|
|
120
|
+
|
|
121
|
+
<div id="attribute-i-active_status" class="method-detail">
|
|
122
|
+
<div class="method-heading attribute-method-heading">
|
|
123
|
+
<span class="method-name">active_status</span><span
|
|
124
|
+
class="attribute-access-type">[RW]</span>
|
|
125
|
+
</div>
|
|
126
|
+
|
|
127
|
+
<div class="method-description">
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
</div>
|
|
132
|
+
</div>
|
|
133
|
+
|
|
134
|
+
<div id="attribute-i-allow_course_evaluation" class="method-detail">
|
|
135
|
+
<div class="method-heading attribute-method-heading">
|
|
136
|
+
<span class="method-name">allow_course_evaluation</span><span
|
|
137
|
+
class="attribute-access-type">[RW]</span>
|
|
138
|
+
</div>
|
|
139
|
+
|
|
140
|
+
<div class="method-description">
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
</div>
|
|
145
|
+
</div>
|
|
146
|
+
|
|
147
|
+
<div id="attribute-i-audience" class="method-detail">
|
|
148
|
+
<div class="method-heading attribute-method-heading">
|
|
149
|
+
<span class="method-name">audience</span><span
|
|
150
|
+
class="attribute-access-type">[RW]</span>
|
|
151
|
+
</div>
|
|
152
|
+
|
|
153
|
+
<div class="method-description">
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
</div>
|
|
158
|
+
</div>
|
|
159
|
+
|
|
160
|
+
<div id="attribute-i-category_id" class="method-detail">
|
|
161
|
+
<div class="method-heading attribute-method-heading">
|
|
162
|
+
<span class="method-name">category_id</span><span
|
|
163
|
+
class="attribute-access-type">[RW]</span>
|
|
164
|
+
</div>
|
|
165
|
+
|
|
166
|
+
<div class="method-description">
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
</div>
|
|
171
|
+
</div>
|
|
172
|
+
|
|
173
|
+
<div id="attribute-i-certificate_url" class="method-detail">
|
|
174
|
+
<div class="method-heading attribute-method-heading">
|
|
175
|
+
<span class="method-name">certificate_url</span><span
|
|
176
|
+
class="attribute-access-type">[RW]</span>
|
|
177
|
+
</div>
|
|
178
|
+
|
|
179
|
+
<div class="method-description">
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
</div>
|
|
184
|
+
</div>
|
|
185
|
+
|
|
186
|
+
<div id="attribute-i-company_cost" class="method-detail">
|
|
187
|
+
<div class="method-heading attribute-method-heading">
|
|
188
|
+
<span class="method-name">company_cost</span><span
|
|
189
|
+
class="attribute-access-type">[RW]</span>
|
|
190
|
+
</div>
|
|
191
|
+
|
|
192
|
+
<div class="method-description">
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
</div>
|
|
197
|
+
</div>
|
|
198
|
+
|
|
199
|
+
<div id="attribute-i-company_time" class="method-detail">
|
|
200
|
+
<div class="method-heading attribute-method-heading">
|
|
201
|
+
<span class="method-name">company_time</span><span
|
|
202
|
+
class="attribute-access-type">[RW]</span>
|
|
203
|
+
</div>
|
|
204
|
+
|
|
205
|
+
<div class="method-description">
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
</div>
|
|
210
|
+
</div>
|
|
211
|
+
|
|
212
|
+
<div id="attribute-i-competency_definition_ids" class="method-detail">
|
|
213
|
+
<div class="method-heading attribute-method-heading">
|
|
214
|
+
<span class="method-name">competency_definition_ids</span><span
|
|
215
|
+
class="attribute-access-type">[RW]</span>
|
|
216
|
+
</div>
|
|
217
|
+
|
|
218
|
+
<div class="method-description">
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
</div>
|
|
223
|
+
</div>
|
|
224
|
+
|
|
225
|
+
<div id="attribute-i-curriculum_group_ids" class="method-detail">
|
|
226
|
+
<div class="method-heading attribute-method-heading">
|
|
227
|
+
<span class="method-name">curriculum_group_ids</span><span
|
|
228
|
+
class="attribute-access-type">[RW]</span>
|
|
229
|
+
</div>
|
|
230
|
+
|
|
231
|
+
<div class="method-description">
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
</div>
|
|
236
|
+
</div>
|
|
237
|
+
|
|
238
|
+
<div id="attribute-i-description" class="method-detail">
|
|
239
|
+
<div class="method-heading attribute-method-heading">
|
|
240
|
+
<span class="method-name">description</span><span
|
|
241
|
+
class="attribute-access-type">[RW]</span>
|
|
242
|
+
</div>
|
|
243
|
+
|
|
244
|
+
<div class="method-description">
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
</div>
|
|
249
|
+
</div>
|
|
250
|
+
|
|
251
|
+
<div id="attribute-i-editor_ids" class="method-detail">
|
|
252
|
+
<div class="method-heading attribute-method-heading">
|
|
253
|
+
<span class="method-name">editor_ids</span><span
|
|
254
|
+
class="attribute-access-type">[RW]</span>
|
|
255
|
+
</div>
|
|
256
|
+
|
|
257
|
+
<div class="method-description">
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
</div>
|
|
262
|
+
</div>
|
|
263
|
+
|
|
264
|
+
<div id="attribute-i-expire_duration" class="method-detail">
|
|
265
|
+
<div class="method-heading attribute-method-heading">
|
|
266
|
+
<span class="method-name">expire_duration</span><span
|
|
267
|
+
class="attribute-access-type">[RW]</span>
|
|
268
|
+
</div>
|
|
269
|
+
|
|
270
|
+
<div class="method-description">
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
</div>
|
|
275
|
+
</div>
|
|
276
|
+
|
|
277
|
+
<div id="attribute-i-expire_type" class="method-detail">
|
|
278
|
+
<div class="method-heading attribute-method-heading">
|
|
279
|
+
<span class="method-name">expire_type</span><span
|
|
280
|
+
class="attribute-access-type">[RW]</span>
|
|
281
|
+
</div>
|
|
282
|
+
|
|
283
|
+
<div class="method-description">
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
</div>
|
|
288
|
+
</div>
|
|
289
|
+
|
|
290
|
+
<div id="attribute-i-expiry_date" class="method-detail">
|
|
291
|
+
<div class="method-heading attribute-method-heading">
|
|
292
|
+
<span class="method-name">expiry_date</span><span
|
|
293
|
+
class="attribute-access-type">[RW]</span>
|
|
294
|
+
</div>
|
|
295
|
+
|
|
296
|
+
<div class="method-description">
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
</div>
|
|
301
|
+
</div>
|
|
302
|
+
|
|
303
|
+
<div id="attribute-i-external_id" class="method-detail">
|
|
304
|
+
<div class="method-heading attribute-method-heading">
|
|
305
|
+
<span class="method-name">external_id</span><span
|
|
306
|
+
class="attribute-access-type">[RW]</span>
|
|
307
|
+
</div>
|
|
308
|
+
|
|
309
|
+
<div class="method-description">
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
</div>
|
|
314
|
+
</div>
|
|
315
|
+
|
|
316
|
+
<div id="attribute-i-goals" class="method-detail">
|
|
317
|
+
<div class="method-heading attribute-method-heading">
|
|
318
|
+
<span class="method-name">goals</span><span
|
|
319
|
+
class="attribute-access-type">[RW]</span>
|
|
320
|
+
</div>
|
|
321
|
+
|
|
322
|
+
<div class="method-description">
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
</div>
|
|
327
|
+
</div>
|
|
328
|
+
|
|
329
|
+
<div id="attribute-i-id" class="method-detail">
|
|
330
|
+
<div class="method-heading attribute-method-heading">
|
|
331
|
+
<span class="method-name">id</span><span
|
|
332
|
+
class="attribute-access-type">[RW]</span>
|
|
333
|
+
</div>
|
|
334
|
+
|
|
335
|
+
<div class="method-description">
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
</div>
|
|
340
|
+
</div>
|
|
341
|
+
|
|
342
|
+
<div id="attribute-i-is_pacing_enabled" class="method-detail">
|
|
343
|
+
<div class="method-heading attribute-method-heading">
|
|
344
|
+
<span class="method-name">is_pacing_enabled</span><span
|
|
345
|
+
class="attribute-access-type">[RW]</span>
|
|
346
|
+
</div>
|
|
347
|
+
|
|
348
|
+
<div class="method-description">
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
</div>
|
|
353
|
+
</div>
|
|
354
|
+
|
|
355
|
+
<div id="attribute-i-learner_cost" class="method-detail">
|
|
356
|
+
<div class="method-heading attribute-method-heading">
|
|
357
|
+
<span class="method-name">learner_cost</span><span
|
|
358
|
+
class="attribute-access-type">[RW]</span>
|
|
359
|
+
</div>
|
|
360
|
+
|
|
361
|
+
<div class="method-description">
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
</div>
|
|
366
|
+
</div>
|
|
367
|
+
|
|
368
|
+
<div id="attribute-i-learner_time" class="method-detail">
|
|
369
|
+
<div class="method-heading attribute-method-heading">
|
|
370
|
+
<span class="method-name">learner_time</span><span
|
|
371
|
+
class="attribute-access-type">[RW]</span>
|
|
372
|
+
</div>
|
|
373
|
+
|
|
374
|
+
<div class="method-description">
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
</div>
|
|
379
|
+
</div>
|
|
380
|
+
|
|
381
|
+
<div id="attribute-i-name" class="method-detail">
|
|
382
|
+
<div class="method-heading attribute-method-heading">
|
|
383
|
+
<span class="method-name">name</span><span
|
|
384
|
+
class="attribute-access-type">[RW]</span>
|
|
385
|
+
</div>
|
|
386
|
+
|
|
387
|
+
<div class="method-description">
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
</div>
|
|
392
|
+
</div>
|
|
393
|
+
|
|
394
|
+
<div id="attribute-i-notes" class="method-detail">
|
|
395
|
+
<div class="method-heading attribute-method-heading">
|
|
396
|
+
<span class="method-name">notes</span><span
|
|
397
|
+
class="attribute-access-type">[RW]</span>
|
|
398
|
+
</div>
|
|
399
|
+
|
|
400
|
+
<div class="method-description">
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
|
|
404
|
+
</div>
|
|
405
|
+
</div>
|
|
406
|
+
|
|
407
|
+
<div id="attribute-i-post_enrollment_course_ids" class="method-detail">
|
|
408
|
+
<div class="method-heading attribute-method-heading">
|
|
409
|
+
<span class="method-name">post_enrollment_course_ids</span><span
|
|
410
|
+
class="attribute-access-type">[RW]</span>
|
|
411
|
+
</div>
|
|
412
|
+
|
|
413
|
+
<div class="method-description">
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
</div>
|
|
418
|
+
</div>
|
|
419
|
+
|
|
420
|
+
<div id="attribute-i-prerequisite_course_ids" class="method-detail">
|
|
421
|
+
<div class="method-heading attribute-method-heading">
|
|
422
|
+
<span class="method-name">prerequisite_course_ids</span><span
|
|
423
|
+
class="attribute-access-type">[RW]</span>
|
|
424
|
+
</div>
|
|
425
|
+
|
|
426
|
+
<div class="method-description">
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
</div>
|
|
431
|
+
</div>
|
|
432
|
+
|
|
433
|
+
<div id="attribute-i-prices" class="method-detail">
|
|
434
|
+
<div class="method-heading attribute-method-heading">
|
|
435
|
+
<span class="method-name">prices</span><span
|
|
436
|
+
class="attribute-access-type">[RW]</span>
|
|
437
|
+
</div>
|
|
438
|
+
|
|
439
|
+
<div class="method-description">
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
</div>
|
|
444
|
+
</div>
|
|
445
|
+
|
|
446
|
+
<div id="attribute-i-resource_ids" class="method-detail">
|
|
447
|
+
<div class="method-heading attribute-method-heading">
|
|
448
|
+
<span class="method-name">resource_ids</span><span
|
|
449
|
+
class="attribute-access-type">[RW]</span>
|
|
450
|
+
</div>
|
|
451
|
+
|
|
452
|
+
<div class="method-description">
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
</div>
|
|
457
|
+
</div>
|
|
458
|
+
|
|
459
|
+
<div id="attribute-i-tag_ids" class="method-detail">
|
|
460
|
+
<div class="method-heading attribute-method-heading">
|
|
461
|
+
<span class="method-name">tag_ids</span><span
|
|
462
|
+
class="attribute-access-type">[RW]</span>
|
|
463
|
+
</div>
|
|
464
|
+
|
|
465
|
+
<div class="method-description">
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
</div>
|
|
470
|
+
</div>
|
|
471
|
+
|
|
472
|
+
<div id="attribute-i-vendor" class="method-detail">
|
|
473
|
+
<div class="method-heading attribute-method-heading">
|
|
474
|
+
<span class="method-name">vendor</span><span
|
|
475
|
+
class="attribute-access-type">[RW]</span>
|
|
476
|
+
</div>
|
|
477
|
+
|
|
478
|
+
<div class="method-description">
|
|
479
|
+
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
</div>
|
|
483
|
+
</div>
|
|
484
|
+
|
|
485
|
+
</section>
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
</section>
|
|
490
|
+
</main>
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
<footer id="validator-badges" role="contentinfo">
|
|
494
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
|
495
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.1.
|
|
496
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
|
497
|
+
</footer>
|
|
498
|
+
|