ed_fi_client 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/docs/EdFi.html +6 -4
- data/docs/EdFi/Client.html +94 -72
- data/docs/EdFi/Client/AccessToken.html +15 -15
- data/docs/EdFi/Client/ArgumentError.html +3 -3
- data/docs/EdFi/Client/Auth.html +39 -33
- data/docs/EdFi/Client/Error.html +3 -3
- data/docs/EdFi/Client/Proxy.html +18 -18
- data/docs/EdFi/Client/Response.html +36 -22
- data/docs/EdFi/Client/UnableToAuthenticateError.html +3 -3
- data/docs/_index.html +4 -4
- data/docs/css/style.css +4 -7
- data/docs/file.README.html +95 -24
- data/docs/frames.html +1 -1
- data/docs/index.html +95 -24
- data/docs/js/app.js +44 -0
- data/docs/method_list.html +32 -32
- data/docs/top-level-namespace.html +3 -3
- data/lib/ed_fi/client.rb +2 -0
- data/lib/ed_fi/client/access_token.rb +1 -0
- data/lib/ed_fi/client/auth.rb +1 -0
- data/lib/ed_fi/client/errors.rb +1 -0
- data/lib/ed_fi/client/proxy.rb +1 -0
- data/lib/ed_fi/client/response.rb +1 -0
- data/lib/ed_fi/client/version.rb +1 -1
- data/lib/ed_fi_client.rb +2 -0
- metadata +2 -2
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Exception: EdFi::Client::ArgumentError
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.14
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -133,9 +133,9 @@
|
|
133
133
|
</div>
|
134
134
|
|
135
135
|
<div id="footer">
|
136
|
-
Generated on Thu
|
136
|
+
Generated on Thu Jun 21 17:02:42 2018 by
|
137
137
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
138
|
-
0.9.
|
138
|
+
0.9.14 (ruby-2.5.1).
|
139
139
|
</div>
|
140
140
|
|
141
141
|
</div>
|
data/docs/EdFi/Client/Auth.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: EdFi::Client::Auth
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.14
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -115,11 +115,16 @@ lifecycle.</p>
|
|
115
115
|
|
116
116
|
|
117
117
|
</div>
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
<
|
122
|
-
|
118
|
+
|
119
|
+
<h2>
|
120
|
+
Constant Summary
|
121
|
+
<small><a href="#" class="constants_summary_toggle">collapse</a></small>
|
122
|
+
</h2>
|
123
|
+
|
124
|
+
<dl class="constants">
|
125
|
+
|
126
|
+
<dt id="AUTHORIZATION_CODE_URI-constant" class="">AUTHORIZATION_CODE_URI =
|
127
|
+
<div class="docstring">
|
123
128
|
<div class="discussion">
|
124
129
|
|
125
130
|
<p>The URI to request an authorization code.</p>
|
@@ -131,11 +136,11 @@ lifecycle.</p>
|
|
131
136
|
|
132
137
|
|
133
138
|
</div>
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
+
</dt>
|
140
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>/oauth/authorize</span><span class='tstring_end'>'</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
|
141
|
+
|
142
|
+
<dt id="AUTHORIZATION_CODE_CONTENT_TYPE-constant" class="">AUTHORIZATION_CODE_CONTENT_TYPE =
|
143
|
+
<div class="docstring">
|
139
144
|
<div class="discussion">
|
140
145
|
|
141
146
|
<p>The MIME content type to use for authorization code requests.</p>
|
@@ -147,11 +152,11 @@ lifecycle.</p>
|
|
147
152
|
|
148
153
|
|
149
154
|
</div>
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
+
</dt>
|
156
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>application/x-www-form-urlencoded</span><span class='tstring_end'>'</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
|
157
|
+
|
158
|
+
<dt id="ACCESS_TOKEN_URI-constant" class="">ACCESS_TOKEN_URI =
|
159
|
+
<div class="docstring">
|
155
160
|
<div class="discussion">
|
156
161
|
|
157
162
|
<p>The URI to request an access token.</p>
|
@@ -163,11 +168,11 @@ lifecycle.</p>
|
|
163
168
|
|
164
169
|
|
165
170
|
</div>
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
+
</dt>
|
172
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>/oauth/token</span><span class='tstring_end'>'</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
|
173
|
+
|
174
|
+
<dt id="ACCESS_TOKEN_CONTENT_TYPE-constant" class="">ACCESS_TOKEN_CONTENT_TYPE =
|
175
|
+
<div class="docstring">
|
171
176
|
<div class="discussion">
|
172
177
|
|
173
178
|
<p>The MIME content type to use for access token requests.</p>
|
@@ -179,10 +184,11 @@ lifecycle.</p>
|
|
179
184
|
|
180
185
|
|
181
186
|
</div>
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
187
|
+
</dt>
|
188
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>application/json</span><span class='tstring_end'>'</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
|
189
|
+
|
190
|
+
</dl>
|
191
|
+
|
186
192
|
|
187
193
|
|
188
194
|
|
@@ -335,16 +341,16 @@ least</em> 5 seconds.</p>
|
|
335
341
|
<pre class="lines">
|
336
342
|
|
337
343
|
|
338
|
-
36
|
339
344
|
37
|
340
345
|
38
|
341
346
|
39
|
342
347
|
40
|
343
348
|
41
|
344
|
-
42
|
349
|
+
42
|
350
|
+
43</pre>
|
345
351
|
</td>
|
346
352
|
<td>
|
347
|
-
<pre class="code"><span class="info file"># File 'lib/ed_fi/client/auth.rb', line
|
353
|
+
<pre class="code"><span class="info file"># File 'lib/ed_fi/client/auth.rb', line 37</span>
|
348
354
|
|
349
355
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='label'>client:</span><span class='comma'>,</span> <span class='label'>client_id:</span><span class='comma'>,</span> <span class='label'>client_secret:</span><span class='rparen'>)</span>
|
350
356
|
<span class='ivar'>@client</span> <span class='op'>=</span> <span class='id identifier rubyid_client'>client</span>
|
@@ -408,13 +414,13 @@ longer valid.</p>
|
|
408
414
|
<pre class="lines">
|
409
415
|
|
410
416
|
|
411
|
-
51
|
412
417
|
52
|
413
418
|
53
|
414
|
-
54
|
419
|
+
54
|
420
|
+
55</pre>
|
415
421
|
</td>
|
416
422
|
<td>
|
417
|
-
<pre class="code"><span class="info file"># File 'lib/ed_fi/client/auth.rb', line
|
423
|
+
<pre class="code"><span class="info file"># File 'lib/ed_fi/client/auth.rb', line 52</span>
|
418
424
|
|
419
425
|
<span class='kw'>def</span> <span class='id identifier rubyid_token'>token</span>
|
420
426
|
<span class='ivar'>@access_token</span> <span class='op'>=</span> <span class='id identifier rubyid_new_access_token'>new_access_token</span> <span class='kw'>unless</span> <span class='ivar'>@access_token</span><span class='op'>&.</span><span class='id identifier rubyid_valid?'>valid?</span>
|
@@ -430,9 +436,9 @@ longer valid.</p>
|
|
430
436
|
</div>
|
431
437
|
|
432
438
|
<div id="footer">
|
433
|
-
Generated on Thu
|
439
|
+
Generated on Thu Jun 21 17:02:42 2018 by
|
434
440
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
435
|
-
0.9.
|
441
|
+
0.9.14 (ruby-2.5.1).
|
436
442
|
</div>
|
437
443
|
|
438
444
|
</div>
|
data/docs/EdFi/Client/Error.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Exception: EdFi::Client::Error
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.14
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -129,9 +129,9 @@
|
|
129
129
|
</div>
|
130
130
|
|
131
131
|
<div id="footer">
|
132
|
-
Generated on Thu
|
132
|
+
Generated on Thu Jun 21 17:02:42 2018 by
|
133
133
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
134
|
-
0.9.
|
134
|
+
0.9.14 (ruby-2.5.1).
|
135
135
|
</div>
|
136
136
|
|
137
137
|
</div>
|
data/docs/EdFi/Client/Proxy.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: EdFi::Client::Proxy
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.14
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -289,15 +289,15 @@
|
|
289
289
|
<pre class="lines">
|
290
290
|
|
291
291
|
|
292
|
-
25
|
293
292
|
26
|
294
293
|
27
|
295
294
|
28
|
296
295
|
29
|
297
|
-
30
|
296
|
+
30
|
297
|
+
31</pre>
|
298
298
|
</td>
|
299
299
|
<td>
|
300
|
-
<pre class="code"><span class="info file"># File 'lib/ed_fi/client/proxy.rb', line
|
300
|
+
<pre class="code"><span class="info file"># File 'lib/ed_fi/client/proxy.rb', line 26</span>
|
301
301
|
|
302
302
|
<span class='kw'>def</span> <span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
303
303
|
<span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='kw'>super</span>
|
@@ -338,15 +338,15 @@
|
|
338
338
|
<pre class="lines">
|
339
339
|
|
340
340
|
|
341
|
-
14
|
342
341
|
15
|
343
342
|
16
|
344
343
|
17
|
345
344
|
18
|
346
|
-
19
|
345
|
+
19
|
346
|
+
20</pre>
|
347
347
|
</td>
|
348
348
|
<td>
|
349
|
-
<pre class="code"><span class="info file"># File 'lib/ed_fi/client/proxy.rb', line
|
349
|
+
<pre class="code"><span class="info file"># File 'lib/ed_fi/client/proxy.rb', line 15</span>
|
350
350
|
|
351
351
|
<span class='kw'>def</span> <span class='id identifier rubyid_get'>get</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
352
352
|
<span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='kw'>super</span>
|
@@ -387,15 +387,15 @@
|
|
387
387
|
<pre class="lines">
|
388
388
|
|
389
389
|
|
390
|
-
47
|
391
390
|
48
|
392
391
|
49
|
393
392
|
50
|
394
393
|
51
|
395
|
-
52
|
394
|
+
52
|
395
|
+
53</pre>
|
396
396
|
</td>
|
397
397
|
<td>
|
398
|
-
<pre class="code"><span class="info file"># File 'lib/ed_fi/client/proxy.rb', line
|
398
|
+
<pre class="code"><span class="info file"># File 'lib/ed_fi/client/proxy.rb', line 48</span>
|
399
399
|
|
400
400
|
<span class='kw'>def</span> <span class='id identifier rubyid_patch'>patch</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
401
401
|
<span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='kw'>super</span>
|
@@ -436,15 +436,15 @@
|
|
436
436
|
<pre class="lines">
|
437
437
|
|
438
438
|
|
439
|
-
36
|
440
439
|
37
|
441
440
|
38
|
442
441
|
39
|
443
442
|
40
|
444
|
-
41
|
443
|
+
41
|
444
|
+
42</pre>
|
445
445
|
</td>
|
446
446
|
<td>
|
447
|
-
<pre class="code"><span class="info file"># File 'lib/ed_fi/client/proxy.rb', line
|
447
|
+
<pre class="code"><span class="info file"># File 'lib/ed_fi/client/proxy.rb', line 37</span>
|
448
448
|
|
449
449
|
<span class='kw'>def</span> <span class='id identifier rubyid_post'>post</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
450
450
|
<span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='kw'>super</span>
|
@@ -485,15 +485,15 @@
|
|
485
485
|
<pre class="lines">
|
486
486
|
|
487
487
|
|
488
|
-
58
|
489
488
|
59
|
490
489
|
60
|
491
490
|
61
|
492
491
|
62
|
493
|
-
63
|
492
|
+
63
|
493
|
+
64</pre>
|
494
494
|
</td>
|
495
495
|
<td>
|
496
|
-
<pre class="code"><span class="info file"># File 'lib/ed_fi/client/proxy.rb', line
|
496
|
+
<pre class="code"><span class="info file"># File 'lib/ed_fi/client/proxy.rb', line 59</span>
|
497
497
|
|
498
498
|
<span class='kw'>def</span> <span class='id identifier rubyid_put'>put</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
499
499
|
<span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='kw'>super</span>
|
@@ -511,9 +511,9 @@
|
|
511
511
|
</div>
|
512
512
|
|
513
513
|
<div id="footer">
|
514
|
-
Generated on Thu
|
514
|
+
Generated on Thu Jun 21 17:02:42 2018 by
|
515
515
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
516
|
-
0.9.
|
516
|
+
0.9.14 (ruby-2.5.1).
|
517
517
|
</div>
|
518
518
|
|
519
519
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: EdFi::Client::Response
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.14
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -258,7 +258,6 @@ instances initialized from a Hash also allow for reference chaining.</p>
|
|
258
258
|
<pre class="lines">
|
259
259
|
|
260
260
|
|
261
|
-
17
|
262
261
|
18
|
263
262
|
19
|
264
263
|
20
|
@@ -281,10 +280,15 @@ instances initialized from a Hash also allow for reference chaining.</p>
|
|
281
280
|
37
|
282
281
|
38
|
283
282
|
39
|
284
|
-
40
|
283
|
+
40
|
284
|
+
41
|
285
|
+
42
|
286
|
+
43
|
287
|
+
44
|
288
|
+
45</pre>
|
285
289
|
</td>
|
286
290
|
<td>
|
287
|
-
<pre class="code"><span class="info file"># File 'lib/ed_fi/client/response.rb', line
|
291
|
+
<pre class="code"><span class="info file"># File 'lib/ed_fi/client/response.rb', line 18</span>
|
288
292
|
|
289
293
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_response'>response</span><span class='comma'>,</span> <span class='label'>client:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
290
294
|
<span class='ivar'>@client</span> <span class='op'>=</span> <span class='id identifier rubyid_client'>client</span>
|
@@ -297,7 +301,7 @@ instances initialized from a Hash also allow for reference chaining.</p>
|
|
297
301
|
<span class='id identifier rubyid_value'>value</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../../EdFi.html" title="EdFi (module)">EdFi</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Client.html" title="EdFi::Client (class)">Client</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="" title="EdFi::Client::Response (class)">Response</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='comma'>,</span> <span class='label'>client:</span> <span class='ivar'>@client</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Hash</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Array</span><span class='rparen'>)</span>
|
298
302
|
|
299
303
|
<span class='lbracket'>[</span><span class='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='rbracket'>]</span>
|
300
|
-
<span class='kw'>end</span><span class='period'>.</span><span class='id identifier rubyid_to_h'>to_h</span>
|
304
|
+
<span class='kw'>end</span><span class='period'>.</span><span class='id identifier rubyid_to_h'>to_h</span><span class='period'>.</span><span class='id identifier rubyid_with_indifferent_access'>with_indifferent_access</span>
|
301
305
|
|
302
306
|
<span class='kw'>when</span> <span class='const'>Array</span>
|
303
307
|
<span class='ivar'>@response</span> <span class='op'>=</span> <span class='id identifier rubyid_response'>response</span><span class='period'>.</span><span class='id identifier rubyid_dup'>dup</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_i'>i</span><span class='op'>|</span>
|
@@ -305,6 +309,10 @@ instances initialized from a Hash also allow for reference chaining.</p>
|
|
305
309
|
<span class='id identifier rubyid_i'>i</span>
|
306
310
|
<span class='kw'>end</span>
|
307
311
|
|
312
|
+
<span class='kw'>when</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span>
|
313
|
+
<span class='comment'>## This can happen for non-body-returning calls.
|
314
|
+
</span> <span class='ivar'>@response</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_with_indifferent_access'>with_indifferent_access</span>
|
315
|
+
|
308
316
|
<span class='kw'>else</span>
|
309
317
|
<span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="../../EdFi.html" title="EdFi (module)">EdFi</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Client.html" title="EdFi::Client (class)">Client</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ArgumentError.html" title="EdFi::Client::ArgumentError (class)">ArgumentError</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>%(</span><span class='tstring_content'>Unexpected "response" type: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_response'>response</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='embexpr_end'>}</span><span class='tstring_end'>)</span></span>
|
310
318
|
|
@@ -338,11 +346,6 @@ instances initialized from a Hash also allow for reference chaining.</p>
|
|
338
346
|
<pre class="lines">
|
339
347
|
|
340
348
|
|
341
|
-
98
|
342
|
-
99
|
343
|
-
100
|
344
|
-
101
|
345
|
-
102
|
346
349
|
103
|
347
350
|
104
|
348
351
|
105
|
@@ -362,10 +365,18 @@ instances initialized from a Hash also allow for reference chaining.</p>
|
|
362
365
|
119
|
363
366
|
120
|
364
367
|
121
|
365
|
-
122
|
368
|
+
122
|
369
|
+
123
|
370
|
+
124
|
371
|
+
125
|
372
|
+
126
|
373
|
+
127
|
374
|
+
128
|
375
|
+
129
|
376
|
+
130</pre>
|
366
377
|
</td>
|
367
378
|
<td>
|
368
|
-
<pre class="code"><span class="info file"># File 'lib/ed_fi/client/response.rb', line
|
379
|
+
<pre class="code"><span class="info file"># File 'lib/ed_fi/client/response.rb', line 103</span>
|
369
380
|
|
370
381
|
<span class='kw'>def</span> <span class='id identifier rubyid_method_missing'>method_missing</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
371
382
|
<span class='comment'>## Note references are cached.
|
@@ -377,10 +388,13 @@ instances initialized from a Hash also allow for reference chaining.</p>
|
|
377
388
|
<span class='comment'>## Allow for acceess to response values via dot notation.
|
378
389
|
</span> <span class='kw'>return</span> <span class='ivar'>@response</span><span class='lbracket'>[</span><span class='id identifier rubyid_name'>name</span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='ivar'>@response</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span> <span class='id identifier rubyid_name'>name</span>
|
379
390
|
|
391
|
+
<span class='comment'>## Allow for assignment to response values via dot notation.
|
392
|
+
</span> <span class='kw'>return</span> <span class='ivar'>@response</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='symbol'>:'[]='</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span><span class='lbracket'>[</span><span class='int'>0</span><span class='op'>...</span><span class='op'>-</span><span class='int'>1</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_ends_with?'>ends_with?</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>=</span><span class='tstring_end'>'</span></span>
|
393
|
+
|
380
394
|
<span class='comment'>## Allow for simple access to referenced resources.
|
381
395
|
</span> <span class='kw'>if</span> <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_present?'>present?</span>
|
382
396
|
<span class='ivar'>@references</span> <span class='op'>||=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
383
|
-
<span class='id identifier rubyid_reference'>reference</span> <span class='op'>=</span> <span class='ivar'>@response</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_content'>_reference</span><span class='tstring_end'>"</span></span><span class='
|
397
|
+
<span class='id identifier rubyid_reference'>reference</span> <span class='op'>=</span> <span class='ivar'>@response</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_content'>_reference</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_link'>link</span><span class='period'>.</span><span class='id identifier rubyid_href'>href</span> <span class='kw'>rescue</span> <span class='kw'>nil</span>
|
384
398
|
|
385
399
|
<span class='kw'>if</span> <span class='id identifier rubyid_reference'>reference</span><span class='period'>.</span><span class='id identifier rubyid_present?'>present?</span>
|
386
400
|
<span class='ivar'>@references</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='id identifier rubyid_reference'>reference</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_args'>args</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span> <span class='op'>==</span> <span class='kw'>true</span>
|
@@ -431,21 +445,21 @@ instances initialized from a Hash also allow for reference chaining.</p>
|
|
431
445
|
<pre class="lines">
|
432
446
|
|
433
447
|
|
434
|
-
45
|
435
|
-
46
|
436
|
-
47
|
437
|
-
48
|
438
|
-
49
|
439
448
|
50
|
440
449
|
51
|
441
450
|
52
|
442
451
|
53
|
443
452
|
54
|
444
453
|
55
|
445
|
-
56
|
454
|
+
56
|
455
|
+
57
|
456
|
+
58
|
457
|
+
59
|
458
|
+
60
|
459
|
+
61</pre>
|
446
460
|
</td>
|
447
461
|
<td>
|
448
|
-
<pre class="code"><span class="info file"># File 'lib/ed_fi/client/response.rb', line
|
462
|
+
<pre class="code"><span class="info file"># File 'lib/ed_fi/client/response.rb', line 50</span>
|
449
463
|
|
450
464
|
<span class='kw'>def</span> <span class='id identifier rubyid_client='>client=</span><span class='lparen'>(</span><span class='id identifier rubyid_client'>client</span><span class='rparen'>)</span>
|
451
465
|
<span class='ivar'>@client</span> <span class='op'>=</span> <span class='id identifier rubyid_client'>client</span>
|
@@ -469,9 +483,9 @@ instances initialized from a Hash also allow for reference chaining.</p>
|
|
469
483
|
</div>
|
470
484
|
|
471
485
|
<div id="footer">
|
472
|
-
Generated on Thu
|
486
|
+
Generated on Thu Jun 21 17:02:43 2018 by
|
473
487
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
474
|
-
0.9.
|
488
|
+
0.9.14 (ruby-2.5.1).
|
475
489
|
</div>
|
476
490
|
|
477
491
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Exception: EdFi::Client::UnableToAuthenticateError
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.14
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -135,9 +135,9 @@ bad base URI in the given client, or invalid credentials.</p>
|
|
135
135
|
</div>
|
136
136
|
|
137
137
|
<div id="footer">
|
138
|
-
Generated on Thu
|
138
|
+
Generated on Thu Jun 21 17:02:42 2018 by
|
139
139
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
140
|
-
0.9.
|
140
|
+
0.9.14 (ruby-2.5.1).
|
141
141
|
</div>
|
142
142
|
|
143
143
|
</div>
|