resourcespace-ruby 0.1.1 → 0.1.2
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 +4 -4
- data/.yardoc/checksums +10 -0
- data/.yardoc/complete +0 -0
- data/.yardoc/object_types +0 -0
- data/.yardoc/objects/root.dat +0 -0
- data/.yardoc/proxy_types +0 -0
- data/.yardopts +7 -0
- data/README.md +1 -2
- data/doc/ResourceSpace/AuthenticationError.html +159 -0
- data/doc/ResourceSpace/AuthorizationError.html +159 -0
- data/doc/ResourceSpace/Client.html +2412 -0
- data/doc/ResourceSpace/ClientError.html +159 -0
- data/doc/ResourceSpace/Collection.html +2301 -0
- data/doc/ResourceSpace/Configuration.html +1655 -0
- data/doc/ResourceSpace/ConfigurationError.html +159 -0
- data/doc/ResourceSpace/ConflictError.html +159 -0
- data/doc/ResourceSpace/Error.html +682 -0
- data/doc/ResourceSpace/Metadata.html +2222 -0
- data/doc/ResourceSpace/NetworkError.html +159 -0
- data/doc/ResourceSpace/NotFoundError.html +159 -0
- data/doc/ResourceSpace/ParseError.html +159 -0
- data/doc/ResourceSpace/QuotaExceededError.html +159 -0
- data/doc/ResourceSpace/RateLimitError.html +159 -0
- data/doc/ResourceSpace/Resource.html +2995 -0
- data/doc/ResourceSpace/Search.html +2487 -0
- data/doc/ResourceSpace/ServerError.html +159 -0
- data/doc/ResourceSpace/TimeoutError.html +159 -0
- data/doc/ResourceSpace/UploadError.html +159 -0
- data/doc/ResourceSpace/User.html +2080 -0
- data/doc/ResourceSpace/ValidationError.html +159 -0
- data/doc/ResourceSpace.html +763 -0
- data/doc/_index.html +358 -0
- data/doc/class_list.html +54 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +58 -0
- data/doc/css/style.css +503 -0
- data/doc/file.CHANGELOG.html +105 -0
- data/doc/file.LICENSE.html +70 -0
- data/doc/file.README.html +419 -0
- data/doc/file_list.html +69 -0
- data/doc/frames.html +22 -0
- data/doc/index.html +419 -0
- data/doc/js/app.js +344 -0
- data/doc/js/full_list.js +242 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +1142 -0
- data/doc/top-level-namespace.html +110 -0
- data/lib/resourcespace/version.rb +1 -1
- data/resourcespace-ruby-0.1.0.gem +0 -0
- data/resourcespace-ruby-0.1.1.gem +0 -0
- data/resourcespace-ruby.gemspec +5 -5
- metadata +54 -7
@@ -0,0 +1,682 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
+
<title>
|
7
|
+
Exception: ResourceSpace::Error
|
8
|
+
|
9
|
+
— Documentation by YARD 0.9.37
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" />
|
16
|
+
|
17
|
+
<script type="text/javascript">
|
18
|
+
pathId = "ResourceSpace::Error";
|
19
|
+
relpath = '../';
|
20
|
+
</script>
|
21
|
+
|
22
|
+
|
23
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
24
|
+
|
25
|
+
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
26
|
+
|
27
|
+
|
28
|
+
</head>
|
29
|
+
<body>
|
30
|
+
<div class="nav_wrap">
|
31
|
+
<iframe id="nav" src="../class_list.html?1"></iframe>
|
32
|
+
<div id="resizer"></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="main" tabindex="-1">
|
36
|
+
<div id="header">
|
37
|
+
<div id="menu">
|
38
|
+
|
39
|
+
<a href="../_index.html">Index (E)</a> »
|
40
|
+
<span class='title'><span class='object_link'><a href="../ResourceSpace.html" title="ResourceSpace (module)">ResourceSpace</a></span></span>
|
41
|
+
»
|
42
|
+
<span class="title">Error</span>
|
43
|
+
|
44
|
+
</div>
|
45
|
+
|
46
|
+
<div id="search">
|
47
|
+
|
48
|
+
<a class="full_list_link" id="class_list_link"
|
49
|
+
href="../class_list.html">
|
50
|
+
|
51
|
+
<svg width="24" height="24">
|
52
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
+
</svg>
|
56
|
+
</a>
|
57
|
+
|
58
|
+
</div>
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
61
|
+
|
62
|
+
<div id="content"><h1>Exception: ResourceSpace::Error
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
</h1>
|
67
|
+
<div class="box_info">
|
68
|
+
|
69
|
+
<dl>
|
70
|
+
<dt>Inherits:</dt>
|
71
|
+
<dd>
|
72
|
+
<span class="inheritName">StandardError</span>
|
73
|
+
|
74
|
+
<ul class="fullTree">
|
75
|
+
<li>Object</li>
|
76
|
+
|
77
|
+
<li class="next">StandardError</li>
|
78
|
+
|
79
|
+
<li class="next">ResourceSpace::Error</li>
|
80
|
+
|
81
|
+
</ul>
|
82
|
+
<a href="#" class="inheritanceTree">show all</a>
|
83
|
+
|
84
|
+
</dd>
|
85
|
+
</dl>
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
<dl>
|
98
|
+
<dt>Defined in:</dt>
|
99
|
+
<dd>lib/resourcespace/errors.rb</dd>
|
100
|
+
</dl>
|
101
|
+
|
102
|
+
</div>
|
103
|
+
|
104
|
+
<h2>Overview</h2><div class="docstring">
|
105
|
+
<div class="discussion">
|
106
|
+
|
107
|
+
<p>Base error class for all ResourceSpace errors</p>
|
108
|
+
|
109
|
+
|
110
|
+
</div>
|
111
|
+
</div>
|
112
|
+
<div class="tags">
|
113
|
+
|
114
|
+
|
115
|
+
</div><div id="subclasses">
|
116
|
+
<h2>Direct Known Subclasses</h2>
|
117
|
+
<p class="children"><span class='object_link'><a href="AuthenticationError.html" title="ResourceSpace::AuthenticationError (class)">AuthenticationError</a></span>, <span class='object_link'><a href="AuthorizationError.html" title="ResourceSpace::AuthorizationError (class)">AuthorizationError</a></span>, <span class='object_link'><a href="ClientError.html" title="ResourceSpace::ClientError (class)">ClientError</a></span>, <span class='object_link'><a href="ConfigurationError.html" title="ResourceSpace::ConfigurationError (class)">ConfigurationError</a></span>, <span class='object_link'><a href="ConflictError.html" title="ResourceSpace::ConflictError (class)">ConflictError</a></span>, <span class='object_link'><a href="NetworkError.html" title="ResourceSpace::NetworkError (class)">NetworkError</a></span>, <span class='object_link'><a href="NotFoundError.html" title="ResourceSpace::NotFoundError (class)">NotFoundError</a></span>, <span class='object_link'><a href="ParseError.html" title="ResourceSpace::ParseError (class)">ParseError</a></span>, <span class='object_link'><a href="QuotaExceededError.html" title="ResourceSpace::QuotaExceededError (class)">QuotaExceededError</a></span>, <span class='object_link'><a href="RateLimitError.html" title="ResourceSpace::RateLimitError (class)">RateLimitError</a></span>, <span class='object_link'><a href="ServerError.html" title="ResourceSpace::ServerError (class)">ServerError</a></span>, <span class='object_link'><a href="TimeoutError.html" title="ResourceSpace::TimeoutError (class)">TimeoutError</a></span>, <span class='object_link'><a href="UploadError.html" title="ResourceSpace::UploadError (class)">UploadError</a></span>, <span class='object_link'><a href="ValidationError.html" title="ResourceSpace::ValidationError (class)">ValidationError</a></span></p>
|
118
|
+
</div>
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
124
|
+
<ul class="summary">
|
125
|
+
|
126
|
+
<li class="public ">
|
127
|
+
<span class="summary_signature">
|
128
|
+
|
129
|
+
<a href="#data-instance_method" title="#data (instance method)">#<strong>data</strong> ⇒ Hash<sup>?</sup> </a>
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
</span>
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
<span class="note title readonly">readonly</span>
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
<span class="summary_desc"><div class='inline'>
|
149
|
+
<p>Additional error data.</p>
|
150
|
+
</div></span>
|
151
|
+
|
152
|
+
</li>
|
153
|
+
|
154
|
+
|
155
|
+
<li class="public ">
|
156
|
+
<span class="summary_signature">
|
157
|
+
|
158
|
+
<a href="#response_body-instance_method" title="#response_body (instance method)">#<strong>response_body</strong> ⇒ String<sup>?</sup> </a>
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
</span>
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
<span class="note title readonly">readonly</span>
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
<span class="summary_desc"><div class='inline'>
|
178
|
+
<p>Response body if applicable.</p>
|
179
|
+
</div></span>
|
180
|
+
|
181
|
+
</li>
|
182
|
+
|
183
|
+
|
184
|
+
<li class="public ">
|
185
|
+
<span class="summary_signature">
|
186
|
+
|
187
|
+
<a href="#status_code-instance_method" title="#status_code (instance method)">#<strong>status_code</strong> ⇒ Integer<sup>?</sup> </a>
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
</span>
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
<span class="note title readonly">readonly</span>
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
<span class="summary_desc"><div class='inline'>
|
207
|
+
<p>HTTP status code if applicable.</p>
|
208
|
+
</div></span>
|
209
|
+
|
210
|
+
</li>
|
211
|
+
|
212
|
+
|
213
|
+
</ul>
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
<h2>
|
220
|
+
Instance Method Summary
|
221
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
222
|
+
</h2>
|
223
|
+
|
224
|
+
<ul class="summary">
|
225
|
+
|
226
|
+
<li class="public ">
|
227
|
+
<span class="summary_signature">
|
228
|
+
|
229
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(message = nil, data: nil, status_code: nil, response_body: nil) ⇒ Error </a>
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
</span>
|
234
|
+
|
235
|
+
|
236
|
+
<span class="note title constructor">constructor</span>
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
<span class="summary_desc"><div class='inline'>
|
246
|
+
<p>Initialize a new error.</p>
|
247
|
+
</div></span>
|
248
|
+
|
249
|
+
</li>
|
250
|
+
|
251
|
+
|
252
|
+
<li class="public ">
|
253
|
+
<span class="summary_signature">
|
254
|
+
|
255
|
+
<a href="#to_h-instance_method" title="#to_h (instance method)">#<strong>to_h</strong> ⇒ Hash </a>
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
</span>
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
<span class="summary_desc"><div class='inline'>
|
270
|
+
<p>Convert error to a hash representation.</p>
|
271
|
+
</div></span>
|
272
|
+
|
273
|
+
</li>
|
274
|
+
|
275
|
+
|
276
|
+
</ul>
|
277
|
+
|
278
|
+
|
279
|
+
|
280
|
+
<div id="constructor_details" class="method_details_list">
|
281
|
+
<h2>Constructor Details</h2>
|
282
|
+
|
283
|
+
<div class="method_details first">
|
284
|
+
<h3 class="signature first" id="initialize-instance_method">
|
285
|
+
|
286
|
+
#<strong>initialize</strong>(message = nil, data: nil, status_code: nil, response_body: nil) ⇒ <tt><span class='object_link'><a href="" title="ResourceSpace::Error (class)">Error</a></span></tt>
|
287
|
+
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
|
292
|
+
</h3><div class="docstring">
|
293
|
+
<div class="discussion">
|
294
|
+
|
295
|
+
<p>Initialize a new error</p>
|
296
|
+
|
297
|
+
|
298
|
+
</div>
|
299
|
+
</div>
|
300
|
+
<div class="tags">
|
301
|
+
<p class="tag_title">Parameters:</p>
|
302
|
+
<ul class="param">
|
303
|
+
|
304
|
+
<li>
|
305
|
+
|
306
|
+
<span class='name'>message</span>
|
307
|
+
|
308
|
+
|
309
|
+
<span class='type'>(<tt>String</tt>)</span>
|
310
|
+
|
311
|
+
|
312
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
313
|
+
|
314
|
+
|
315
|
+
—
|
316
|
+
<div class='inline'>
|
317
|
+
<p>error message</p>
|
318
|
+
</div>
|
319
|
+
|
320
|
+
</li>
|
321
|
+
|
322
|
+
<li>
|
323
|
+
|
324
|
+
<span class='name'>data</span>
|
325
|
+
|
326
|
+
|
327
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
328
|
+
|
329
|
+
|
330
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
331
|
+
|
332
|
+
|
333
|
+
—
|
334
|
+
<div class='inline'>
|
335
|
+
<p>additional error data</p>
|
336
|
+
</div>
|
337
|
+
|
338
|
+
</li>
|
339
|
+
|
340
|
+
<li>
|
341
|
+
|
342
|
+
<span class='name'>status_code</span>
|
343
|
+
|
344
|
+
|
345
|
+
<span class='type'>(<tt>Integer</tt>)</span>
|
346
|
+
|
347
|
+
|
348
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
349
|
+
|
350
|
+
|
351
|
+
—
|
352
|
+
<div class='inline'>
|
353
|
+
<p>HTTP status code</p>
|
354
|
+
</div>
|
355
|
+
|
356
|
+
</li>
|
357
|
+
|
358
|
+
<li>
|
359
|
+
|
360
|
+
<span class='name'>response_body</span>
|
361
|
+
|
362
|
+
|
363
|
+
<span class='type'>(<tt>String</tt>)</span>
|
364
|
+
|
365
|
+
|
366
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
367
|
+
|
368
|
+
|
369
|
+
—
|
370
|
+
<div class='inline'>
|
371
|
+
<p>HTTP response body</p>
|
372
|
+
</div>
|
373
|
+
|
374
|
+
</li>
|
375
|
+
|
376
|
+
</ul>
|
377
|
+
|
378
|
+
|
379
|
+
</div><table class="source_code">
|
380
|
+
<tr>
|
381
|
+
<td>
|
382
|
+
<pre class="lines">
|
383
|
+
|
384
|
+
|
385
|
+
21
|
386
|
+
22
|
387
|
+
23
|
388
|
+
24
|
389
|
+
25
|
390
|
+
26</pre>
|
391
|
+
</td>
|
392
|
+
<td>
|
393
|
+
<pre class="code"><span class="info file"># File 'lib/resourcespace/errors.rb', line 21</span>
|
394
|
+
|
395
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>data:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>status_code:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>response_body:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
396
|
+
<span class='ivar'>@data</span> <span class='op'>=</span> <span class='id identifier rubyid_data'>data</span>
|
397
|
+
<span class='ivar'>@status_code</span> <span class='op'>=</span> <span class='id identifier rubyid_status_code'>status_code</span>
|
398
|
+
<span class='ivar'>@response_body</span> <span class='op'>=</span> <span class='id identifier rubyid_response_body'>response_body</span>
|
399
|
+
<span class='kw'>super</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
|
400
|
+
<span class='kw'>end</span></pre>
|
401
|
+
</td>
|
402
|
+
</tr>
|
403
|
+
</table>
|
404
|
+
</div>
|
405
|
+
|
406
|
+
</div>
|
407
|
+
|
408
|
+
<div id="instance_attr_details" class="attr_details">
|
409
|
+
<h2>Instance Attribute Details</h2>
|
410
|
+
|
411
|
+
|
412
|
+
<span id=""></span>
|
413
|
+
<div class="method_details first">
|
414
|
+
<h3 class="signature first" id="data-instance_method">
|
415
|
+
|
416
|
+
#<strong>data</strong> ⇒ <tt>Hash</tt><sup>?</sup> <span class="extras">(readonly)</span>
|
417
|
+
|
418
|
+
|
419
|
+
|
420
|
+
|
421
|
+
|
422
|
+
</h3><div class="docstring">
|
423
|
+
<div class="discussion">
|
424
|
+
|
425
|
+
<p>Returns additional error data.</p>
|
426
|
+
|
427
|
+
|
428
|
+
</div>
|
429
|
+
</div>
|
430
|
+
<div class="tags">
|
431
|
+
|
432
|
+
<p class="tag_title">Returns:</p>
|
433
|
+
<ul class="return">
|
434
|
+
|
435
|
+
<li>
|
436
|
+
|
437
|
+
|
438
|
+
<span class='type'>(<tt>Hash</tt>, <tt>nil</tt>)</span>
|
439
|
+
|
440
|
+
|
441
|
+
|
442
|
+
—
|
443
|
+
<div class='inline'>
|
444
|
+
<p>additional error data</p>
|
445
|
+
</div>
|
446
|
+
|
447
|
+
</li>
|
448
|
+
|
449
|
+
</ul>
|
450
|
+
|
451
|
+
</div><table class="source_code">
|
452
|
+
<tr>
|
453
|
+
<td>
|
454
|
+
<pre class="lines">
|
455
|
+
|
456
|
+
|
457
|
+
7
|
458
|
+
8
|
459
|
+
9</pre>
|
460
|
+
</td>
|
461
|
+
<td>
|
462
|
+
<pre class="code"><span class="info file"># File 'lib/resourcespace/errors.rb', line 7</span>
|
463
|
+
|
464
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_data'>data</span>
|
465
|
+
<span class='ivar'>@data</span>
|
466
|
+
<span class='kw'>end</span></pre>
|
467
|
+
</td>
|
468
|
+
</tr>
|
469
|
+
</table>
|
470
|
+
</div>
|
471
|
+
|
472
|
+
|
473
|
+
<span id=""></span>
|
474
|
+
<div class="method_details ">
|
475
|
+
<h3 class="signature " id="response_body-instance_method">
|
476
|
+
|
477
|
+
#<strong>response_body</strong> ⇒ <tt>String</tt><sup>?</sup> <span class="extras">(readonly)</span>
|
478
|
+
|
479
|
+
|
480
|
+
|
481
|
+
|
482
|
+
|
483
|
+
</h3><div class="docstring">
|
484
|
+
<div class="discussion">
|
485
|
+
|
486
|
+
<p>Returns response body if applicable.</p>
|
487
|
+
|
488
|
+
|
489
|
+
</div>
|
490
|
+
</div>
|
491
|
+
<div class="tags">
|
492
|
+
|
493
|
+
<p class="tag_title">Returns:</p>
|
494
|
+
<ul class="return">
|
495
|
+
|
496
|
+
<li>
|
497
|
+
|
498
|
+
|
499
|
+
<span class='type'>(<tt>String</tt>, <tt>nil</tt>)</span>
|
500
|
+
|
501
|
+
|
502
|
+
|
503
|
+
—
|
504
|
+
<div class='inline'>
|
505
|
+
<p>response body if applicable</p>
|
506
|
+
</div>
|
507
|
+
|
508
|
+
</li>
|
509
|
+
|
510
|
+
</ul>
|
511
|
+
|
512
|
+
</div><table class="source_code">
|
513
|
+
<tr>
|
514
|
+
<td>
|
515
|
+
<pre class="lines">
|
516
|
+
|
517
|
+
|
518
|
+
13
|
519
|
+
14
|
520
|
+
15</pre>
|
521
|
+
</td>
|
522
|
+
<td>
|
523
|
+
<pre class="code"><span class="info file"># File 'lib/resourcespace/errors.rb', line 13</span>
|
524
|
+
|
525
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_response_body'>response_body</span>
|
526
|
+
<span class='ivar'>@response_body</span>
|
527
|
+
<span class='kw'>end</span></pre>
|
528
|
+
</td>
|
529
|
+
</tr>
|
530
|
+
</table>
|
531
|
+
</div>
|
532
|
+
|
533
|
+
|
534
|
+
<span id=""></span>
|
535
|
+
<div class="method_details ">
|
536
|
+
<h3 class="signature " id="status_code-instance_method">
|
537
|
+
|
538
|
+
#<strong>status_code</strong> ⇒ <tt>Integer</tt><sup>?</sup> <span class="extras">(readonly)</span>
|
539
|
+
|
540
|
+
|
541
|
+
|
542
|
+
|
543
|
+
|
544
|
+
</h3><div class="docstring">
|
545
|
+
<div class="discussion">
|
546
|
+
|
547
|
+
<p>Returns HTTP status code if applicable.</p>
|
548
|
+
|
549
|
+
|
550
|
+
</div>
|
551
|
+
</div>
|
552
|
+
<div class="tags">
|
553
|
+
|
554
|
+
<p class="tag_title">Returns:</p>
|
555
|
+
<ul class="return">
|
556
|
+
|
557
|
+
<li>
|
558
|
+
|
559
|
+
|
560
|
+
<span class='type'>(<tt>Integer</tt>, <tt>nil</tt>)</span>
|
561
|
+
|
562
|
+
|
563
|
+
|
564
|
+
—
|
565
|
+
<div class='inline'>
|
566
|
+
<p>HTTP status code if applicable</p>
|
567
|
+
</div>
|
568
|
+
|
569
|
+
</li>
|
570
|
+
|
571
|
+
</ul>
|
572
|
+
|
573
|
+
</div><table class="source_code">
|
574
|
+
<tr>
|
575
|
+
<td>
|
576
|
+
<pre class="lines">
|
577
|
+
|
578
|
+
|
579
|
+
10
|
580
|
+
11
|
581
|
+
12</pre>
|
582
|
+
</td>
|
583
|
+
<td>
|
584
|
+
<pre class="code"><span class="info file"># File 'lib/resourcespace/errors.rb', line 10</span>
|
585
|
+
|
586
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_status_code'>status_code</span>
|
587
|
+
<span class='ivar'>@status_code</span>
|
588
|
+
<span class='kw'>end</span></pre>
|
589
|
+
</td>
|
590
|
+
</tr>
|
591
|
+
</table>
|
592
|
+
</div>
|
593
|
+
|
594
|
+
</div>
|
595
|
+
|
596
|
+
|
597
|
+
<div id="instance_method_details" class="method_details_list">
|
598
|
+
<h2>Instance Method Details</h2>
|
599
|
+
|
600
|
+
|
601
|
+
<div class="method_details first">
|
602
|
+
<h3 class="signature first" id="to_h-instance_method">
|
603
|
+
|
604
|
+
#<strong>to_h</strong> ⇒ <tt>Hash</tt>
|
605
|
+
|
606
|
+
|
607
|
+
|
608
|
+
|
609
|
+
|
610
|
+
</h3><div class="docstring">
|
611
|
+
<div class="discussion">
|
612
|
+
|
613
|
+
<p>Convert error to a hash representation</p>
|
614
|
+
|
615
|
+
|
616
|
+
</div>
|
617
|
+
</div>
|
618
|
+
<div class="tags">
|
619
|
+
|
620
|
+
<p class="tag_title">Returns:</p>
|
621
|
+
<ul class="return">
|
622
|
+
|
623
|
+
<li>
|
624
|
+
|
625
|
+
|
626
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
627
|
+
|
628
|
+
|
629
|
+
|
630
|
+
—
|
631
|
+
<div class='inline'>
|
632
|
+
<p>error as a hash</p>
|
633
|
+
</div>
|
634
|
+
|
635
|
+
</li>
|
636
|
+
|
637
|
+
</ul>
|
638
|
+
|
639
|
+
</div><table class="source_code">
|
640
|
+
<tr>
|
641
|
+
<td>
|
642
|
+
<pre class="lines">
|
643
|
+
|
644
|
+
|
645
|
+
31
|
646
|
+
32
|
647
|
+
33
|
648
|
+
34
|
649
|
+
35
|
650
|
+
36
|
651
|
+
37
|
652
|
+
38</pre>
|
653
|
+
</td>
|
654
|
+
<td>
|
655
|
+
<pre class="code"><span class="info file"># File 'lib/resourcespace/errors.rb', line 31</span>
|
656
|
+
|
657
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_to_h'>to_h</span>
|
658
|
+
<span class='lbrace'>{</span>
|
659
|
+
<span class='label'>error:</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span>
|
660
|
+
<span class='label'>message:</span> <span class='id identifier rubyid_message'>message</span><span class='comma'>,</span>
|
661
|
+
<span class='label'>status_code:</span> <span class='id identifier rubyid_status_code'>status_code</span><span class='comma'>,</span>
|
662
|
+
<span class='label'>data:</span> <span class='id identifier rubyid_data'>data</span>
|
663
|
+
<span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_compact'>compact</span>
|
664
|
+
<span class='kw'>end</span></pre>
|
665
|
+
</td>
|
666
|
+
</tr>
|
667
|
+
</table>
|
668
|
+
</div>
|
669
|
+
|
670
|
+
</div>
|
671
|
+
|
672
|
+
</div>
|
673
|
+
|
674
|
+
<div id="footer">
|
675
|
+
Generated on Sat May 24 15:41:23 2025 by
|
676
|
+
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
677
|
+
0.9.37 (ruby-3.4.4).
|
678
|
+
</div>
|
679
|
+
|
680
|
+
</div>
|
681
|
+
</body>
|
682
|
+
</html>
|