contentful 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +1 -0
  3. data/ChangeLog.md +6 -0
  4. data/Gemfile +5 -0
  5. data/README.md +1 -0
  6. data/contentful.gemspec +1 -1
  7. data/lib/contentful/array.rb +1 -2
  8. data/lib/contentful/asset.rb +3 -3
  9. data/lib/contentful/client.rb +15 -18
  10. data/lib/contentful/content_type.rb +1 -1
  11. data/lib/contentful/dynamic_entry.rb +6 -6
  12. data/lib/contentful/entry.rb +1 -1
  13. data/lib/contentful/error.rb +3 -3
  14. data/lib/contentful/field.rb +1 -1
  15. data/lib/contentful/file.rb +1 -1
  16. data/lib/contentful/link.rb +2 -2
  17. data/lib/contentful/locale.rb +1 -1
  18. data/lib/contentful/location.rb +1 -1
  19. data/lib/contentful/resource.rb +10 -11
  20. data/lib/contentful/resource_builder.rb +63 -39
  21. data/lib/contentful/space.rb +1 -1
  22. data/lib/contentful/support.rb +5 -3
  23. data/lib/contentful/version.rb +1 -1
  24. data/spec/fixtures/json_responses/includes.json +111 -0
  25. data/spec/fixtures/json_responses/link_array.json +43 -0
  26. data/spec/resource_building_spec.rb +20 -0
  27. data/spec/spec_helper.rb +5 -1
  28. metadata +138 -192
  29. data/.README.md.swp +0 -0
  30. data/do_request.sh +0 -5
  31. data/doc/Contentful.html +0 -131
  32. data/doc/Contentful/AccessDenied.html +0 -158
  33. data/doc/Contentful/Array.html +0 -346
  34. data/doc/Contentful/Asset.html +0 -315
  35. data/doc/Contentful/BadRequest.html +0 -158
  36. data/doc/Contentful/Client.html +0 -1407
  37. data/doc/Contentful/ContentType.html +0 -183
  38. data/doc/Contentful/DynamicEntry.html +0 -333
  39. data/doc/Contentful/Entry.html +0 -198
  40. data/doc/Contentful/Error.html +0 -413
  41. data/doc/Contentful/Field.html +0 -161
  42. data/doc/Contentful/File.html +0 -160
  43. data/doc/Contentful/Link.html +0 -275
  44. data/doc/Contentful/Locale.html +0 -161
  45. data/doc/Contentful/NotFound.html +0 -158
  46. data/doc/Contentful/Request.html +0 -669
  47. data/doc/Contentful/Resource.html +0 -606
  48. data/doc/Contentful/Resource/AssetFields.html +0 -413
  49. data/doc/Contentful/Resource/AssetFields/ClassMethods.html +0 -174
  50. data/doc/Contentful/Resource/ClassMethods.html +0 -271
  51. data/doc/Contentful/Resource/Fields.html +0 -398
  52. data/doc/Contentful/Resource/Fields/ClassMethods.html +0 -187
  53. data/doc/Contentful/Resource/SystemProperties.html +0 -444
  54. data/doc/Contentful/Resource/SystemProperties/ClassMethods.html +0 -174
  55. data/doc/Contentful/ResourceBuilder.html +0 -1400
  56. data/doc/Contentful/Response.html +0 -546
  57. data/doc/Contentful/ServerError.html +0 -158
  58. data/doc/Contentful/Space.html +0 -183
  59. data/doc/Contentful/Support.html +0 -198
  60. data/doc/Contentful/Unauthorized.html +0 -158
  61. data/doc/Contentful/UnparsableJson.html +0 -158
  62. data/doc/Contentful/UnparsableResource.html +0 -158
  63. data/doc/_index.html +0 -410
  64. data/doc/class_list.html +0 -54
  65. data/doc/css/common.css +0 -1
  66. data/doc/css/full_list.css +0 -57
  67. data/doc/css/style.css +0 -338
  68. data/doc/file.README.html +0 -214
  69. data/doc/file_list.html +0 -56
  70. data/doc/frames.html +0 -26
  71. data/doc/index.html +0 -214
  72. data/doc/js/app.js +0 -219
  73. data/doc/js/full_list.js +0 -178
  74. data/doc/js/jquery.js +0 -4
  75. data/doc/method_list.html +0 -533
  76. data/doc/top-level-namespace.html +0 -112
@@ -1,198 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
- <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
- <title>
7
- Class: Contentful::Entry
8
-
9
- &mdash; Documentation by YARD 0.8.7.3
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- hasFrames = window.top.frames.main ? true : false;
19
- relpath = '../';
20
- framesUrl = "../frames.html#!" + escape(window.location.href);
21
- </script>
22
-
23
-
24
- <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
25
-
26
- <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
27
-
28
-
29
- </head>
30
- <body>
31
- <div id="header">
32
- <div id="menu">
33
-
34
- <a href="../_index.html">Index (E)</a> &raquo;
35
- <span class='title'><span class='object_link'><a href="../Contentful.html" title="Contentful (module)">Contentful</a></span></span>
36
- &raquo;
37
- <span class="title">Entry</span>
38
-
39
-
40
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
- </div>
42
-
43
- <div id="search">
44
-
45
- <a class="full_list_link" id="class_list_link"
46
- href="../class_list.html">
47
- Class List
48
- </a>
49
-
50
- <a class="full_list_link" id="method_list_link"
51
- href="../method_list.html">
52
- Method List
53
- </a>
54
-
55
- <a class="full_list_link" id="file_list_link"
56
- href="../file_list.html">
57
- File List
58
- </a>
59
-
60
- </div>
61
- <div class="clear"></div>
62
- </div>
63
-
64
- <iframe id="search_frame"></iframe>
65
-
66
- <div id="content"><h1>Class: Contentful::Entry
67
-
68
-
69
-
70
- </h1>
71
-
72
- <dl class="box">
73
-
74
- <dt class="r1">Inherits:</dt>
75
- <dd class="r1">
76
- <span class="inheritName">Object</span>
77
-
78
- <ul class="fullTree">
79
- <li>Object</li>
80
-
81
- <li class="next">Contentful::Entry</li>
82
-
83
- </ul>
84
- <a href="#" class="inheritanceTree">show all</a>
85
-
86
- </dd>
87
-
88
-
89
-
90
-
91
-
92
-
93
- <dt class="r2">Includes:</dt>
94
- <dd class="r2"><span class='object_link'><a href="Resource.html" title="Contentful::Resource (module)">Resource</a></span>, <span class='object_link'><a href="Resource/Fields.html" title="Contentful::Resource::Fields (module)">Resource::Fields</a></span>, <span class='object_link'><a href="Resource/SystemProperties.html" title="Contentful::Resource::SystemProperties (module)">Resource::SystemProperties</a></span></dd>
95
-
96
-
97
-
98
-
99
-
100
- <dt class="r1 last">Defined in:</dt>
101
- <dd class="r1 last">lib/contentful/entry.rb</dd>
102
-
103
- </dl>
104
- <div class="clear"></div>
105
-
106
- <h2>Overview</h2><div class="docstring">
107
- <div class="discussion">
108
-
109
- <p>Resource class for Entry. <a
110
- href="https://www.contentful.com/developers/documentation/content-delivery-api/#entries">www.contentful.com/developers/documentation/content-delivery-api/#entries</a></p>
111
-
112
-
113
- </div>
114
- </div>
115
- <div class="tags">
116
-
117
-
118
- </div><div id="subclasses">
119
- <h2>Direct Known Subclasses</h2>
120
- <p class="children"><span class='object_link'><a href="DynamicEntry.html" title="Contentful::DynamicEntry (class)">DynamicEntry</a></span></p>
121
- </div>
122
-
123
- <h2>Constant Summary</h2>
124
-
125
-
126
-
127
-
128
- <h2>Constant Summary</h2>
129
-
130
- <h3 class="inherited">Constants included
131
- from <span class='object_link'><a href="Resource/SystemProperties.html" title="Contentful::Resource::SystemProperties (module)">Resource::SystemProperties</a></span></h3>
132
- <p class="inherited"><span class='object_link'><a href="Resource/SystemProperties.html#SYS_COERCIONS-constant" title="Contentful::Resource::SystemProperties::SYS_COERCIONS (constant)">Resource::SystemProperties::SYS_COERCIONS</a></span></p>
133
-
134
-
135
-
136
- <h3 class="inherited">Constants included
137
- from <span class='object_link'><a href="Resource.html" title="Contentful::Resource (module)">Resource</a></span></h3>
138
- <p class="inherited"><span class='object_link'><a href="Resource.html#COERCIONS-constant" title="Contentful::Resource::COERCIONS (constant)">Resource::COERCIONS</a></span></p>
139
-
140
-
141
-
142
-
143
- <h2>Instance Attribute Summary</h2>
144
-
145
- <h3 class="inherited">Attributes included from <span class='object_link'><a href="Resource/SystemProperties.html" title="Contentful::Resource::SystemProperties (module)">Resource::SystemProperties</a></span></h3>
146
- <p class="inherited"><span class='object_link'><a href="Resource/SystemProperties.html#sys-instance_method" title="Contentful::Resource::SystemProperties#sys (method)">#sys</a></span></p>
147
-
148
-
149
-
150
- <h3 class="inherited">Attributes included from <span class='object_link'><a href="Resource.html" title="Contentful::Resource (module)">Resource</a></span></h3>
151
- <p class="inherited"><span class='object_link'><a href="Resource.html#client-instance_method" title="Contentful::Resource#client (method)">#client</a></span>, <span class='object_link'><a href="Resource.html#properties-instance_method" title="Contentful::Resource#properties (method)">#properties</a></span></p>
152
-
153
-
154
-
155
-
156
-
157
-
158
-
159
-
160
-
161
- <h2>Method Summary</h2>
162
-
163
- <h3 class="inherited">Methods included from <span class='object_link'><a href="Resource/Fields.html" title="Contentful::Resource::Fields (module)">Resource::Fields</a></span></h3>
164
- <p class="inherited"><span class='object_link'><a href="Resource/Fields.html#fields-instance_method" title="Contentful::Resource::Fields#fields (method)">#fields</a></span>, <span class='object_link'><a href="Resource/Fields.html#included-class_method" title="Contentful::Resource::Fields.included (method)">included</a></span>, <span class='object_link'><a href="Resource/Fields.html#initialize-instance_method" title="Contentful::Resource::Fields#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="Resource/Fields.html#inspect-instance_method" title="Contentful::Resource::Fields#inspect (method)">#inspect</a></span></p>
165
-
166
-
167
-
168
-
169
-
170
-
171
-
172
-
173
-
174
- <h3 class="inherited">Methods included from <span class='object_link'><a href="Resource/SystemProperties.html" title="Contentful::Resource::SystemProperties (module)">Resource::SystemProperties</a></span></h3>
175
- <p class="inherited"><span class='object_link'><a href="Resource/SystemProperties.html#included-class_method" title="Contentful::Resource::SystemProperties.included (method)">included</a></span>, <span class='object_link'><a href="Resource/SystemProperties.html#initialize-instance_method" title="Contentful::Resource::SystemProperties#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="Resource/SystemProperties.html#inspect-instance_method" title="Contentful::Resource::SystemProperties#inspect (method)">#inspect</a></span></p>
176
-
177
-
178
-
179
-
180
-
181
-
182
-
183
-
184
-
185
- <h3 class="inherited">Methods included from <span class='object_link'><a href="Resource.html" title="Contentful::Resource (module)">Resource</a></span></h3>
186
- <p class="inherited"><span class='object_link'><a href="Resource.html#array%3F-instance_method" title="Contentful::Resource#array? (method)">#array?</a></span>, <span class='object_link'><a href="Resource.html#fields-instance_method" title="Contentful::Resource#fields (method)">#fields</a></span>, <span class='object_link'><a href="Resource.html#initialize-instance_method" title="Contentful::Resource#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="Resource.html#inspect-instance_method" title="Contentful::Resource#inspect (method)">#inspect</a></span>, <span class='object_link'><a href="Resource.html#sys-instance_method" title="Contentful::Resource#sys (method)">#sys</a></span></p>
187
-
188
-
189
- </div>
190
-
191
- <div id="footer">
192
- Generated on Tue Mar 11 09:25:52 2014 by
193
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
194
- 0.8.7.3 (ruby-1.9.3).
195
- </div>
196
-
197
- </body>
198
- </html>
@@ -1,413 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
- <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
- <title>
7
- Exception: Contentful::Error
8
-
9
- &mdash; Documentation by YARD 0.8.7.3
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- hasFrames = window.top.frames.main ? true : false;
19
- relpath = '../';
20
- framesUrl = "../frames.html#!" + escape(window.location.href);
21
- </script>
22
-
23
-
24
- <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
25
-
26
- <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
27
-
28
-
29
- </head>
30
- <body>
31
- <div id="header">
32
- <div id="menu">
33
-
34
- <a href="../_index.html">Index (E)</a> &raquo;
35
- <span class='title'><span class='object_link'><a href="../Contentful.html" title="Contentful (module)">Contentful</a></span></span>
36
- &raquo;
37
- <span class="title">Error</span>
38
-
39
-
40
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
- </div>
42
-
43
- <div id="search">
44
-
45
- <a class="full_list_link" id="class_list_link"
46
- href="../class_list.html">
47
- Class List
48
- </a>
49
-
50
- <a class="full_list_link" id="method_list_link"
51
- href="../method_list.html">
52
- Method List
53
- </a>
54
-
55
- <a class="full_list_link" id="file_list_link"
56
- href="../file_list.html">
57
- File List
58
- </a>
59
-
60
- </div>
61
- <div class="clear"></div>
62
- </div>
63
-
64
- <iframe id="search_frame"></iframe>
65
-
66
- <div id="content"><h1>Exception: Contentful::Error
67
-
68
-
69
-
70
- </h1>
71
-
72
- <dl class="box">
73
-
74
- <dt class="r1">Inherits:</dt>
75
- <dd class="r1">
76
- <span class="inheritName">StandardError</span>
77
-
78
- <ul class="fullTree">
79
- <li>Object</li>
80
-
81
- <li class="next">StandardError</li>
82
-
83
- <li class="next">Contentful::Error</li>
84
-
85
- </ul>
86
- <a href="#" class="inheritanceTree">show all</a>
87
-
88
- </dd>
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
-
98
- <dt class="r2 last">Defined in:</dt>
99
- <dd class="r2 last">lib/contentful/error.rb</dd>
100
-
101
- </dl>
102
- <div class="clear"></div>
103
-
104
- <h2>Overview</h2><div class="docstring">
105
- <div class="discussion">
106
-
107
- <p>All errors raised by the contentful gem are either instances of
108
- Contentful::Error or inherit from Contentful::Error</p>
109
-
110
-
111
- </div>
112
- </div>
113
- <div class="tags">
114
-
115
-
116
- </div><div id="subclasses">
117
- <h2>Direct Known Subclasses</h2>
118
- <p class="children"><span class='object_link'><a href="AccessDenied.html" title="Contentful::AccessDenied (class)">AccessDenied</a></span>, <span class='object_link'><a href="BadRequest.html" title="Contentful::BadRequest (class)">BadRequest</a></span>, <span class='object_link'><a href="NotFound.html" title="Contentful::NotFound (class)">NotFound</a></span>, <span class='object_link'><a href="ServerError.html" title="Contentful::ServerError (class)">ServerError</a></span>, <span class='object_link'><a href="Unauthorized.html" title="Contentful::Unauthorized (class)">Unauthorized</a></span>, <span class='object_link'><a href="UnparsableJson.html" title="Contentful::UnparsableJson (class)">UnparsableJson</a></span>, <span class='object_link'><a href="UnparsableResource.html" title="Contentful::UnparsableResource (class)">UnparsableResource</a></span></p>
119
- </div>
120
-
121
-
122
-
123
-
124
- <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
125
- <ul class="summary">
126
-
127
- <li class="public ">
128
- <span class="summary_signature">
129
-
130
- <a href="#response-instance_method" title="#response (instance method)">- (Object) <strong>response</strong> </a>
131
-
132
-
133
-
134
- </span>
135
-
136
-
137
-
138
-
139
- <span class="note title readonly">readonly</span>
140
-
141
-
142
-
143
-
144
-
145
-
146
-
147
-
148
-
149
- <span class="summary_desc"><div class='inline'>
150
- <p>Returns the value of attribute response.</p>
151
- </div></span>
152
-
153
- </li>
154
-
155
-
156
- </ul>
157
-
158
-
159
-
160
-
161
-
162
- <h2>
163
- Class Method Summary
164
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
165
- </h2>
166
-
167
- <ul class="summary">
168
-
169
- <li class="public ">
170
- <span class="summary_signature">
171
-
172
- <a href="#%5B%5D-class_method" title="[] (class method)">+ (Object) <strong>[]</strong>(no) </a>
173
-
174
-
175
-
176
- </span>
177
-
178
-
179
-
180
-
181
-
182
-
183
-
184
-
185
-
186
- <span class="summary_desc"><div class='inline'>
187
- <p>Shortcut for creating specialized error classes USAGE rescue <a
188
- href="http://404">Contentful::Error</a>.</p>
189
- </div></span>
190
-
191
- </li>
192
-
193
-
194
- </ul>
195
-
196
- <h2>
197
- Instance Method Summary
198
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
199
- </h2>
200
-
201
- <ul class="summary">
202
-
203
- <li class="public ">
204
- <span class="summary_signature">
205
-
206
- <a href="#initialize-instance_method" title="#initialize (instance method)">- (Error) <strong>initialize</strong>(response) </a>
207
-
208
-
209
-
210
- </span>
211
-
212
-
213
- <span class="note title constructor">constructor</span>
214
-
215
-
216
-
217
-
218
-
219
-
220
-
221
-
222
- <span class="summary_desc"><div class='inline'>
223
- <p>A new instance of Error.</p>
224
- </div></span>
225
-
226
- </li>
227
-
228
-
229
- </ul>
230
-
231
-
232
-
233
- <div id="constructor_details" class="method_details_list">
234
- <h2>Constructor Details</h2>
235
-
236
- <div class="method_details first">
237
- <h3 class="signature first" id="initialize-instance_method">
238
-
239
- - (<tt><span class='object_link'><a href="" title="Contentful::Error (class)">Error</a></span></tt>) <strong>initialize</strong>(response)
240
-
241
-
242
-
243
-
244
-
245
- </h3><div class="docstring">
246
- <div class="discussion">
247
-
248
- <p>Returns a new instance of Error</p>
249
-
250
-
251
- </div>
252
- </div>
253
- <div class="tags">
254
-
255
-
256
- </div><table class="source_code">
257
- <tr>
258
- <td>
259
- <pre class="lines">
260
-
261
-
262
- 7
263
- 8
264
- 9
265
- 10</pre>
266
- </td>
267
- <td>
268
- <pre class="code"><span class="info file"># File 'lib/contentful/error.rb', line 7</span>
269
-
270
- <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='rparen'>)</span>
271
- <span class='ivar'>@response</span> <span class='op'>=</span> <span class='id identifier rubyid_response'>response</span>
272
- <span class='kw'>super</span> <span class='ivar'>@response</span><span class='period'>.</span><span class='id identifier rubyid_error_message'>error_message</span>
273
- <span class='kw'>end</span></pre>
274
- </td>
275
- </tr>
276
- </table>
277
- </div>
278
-
279
- </div>
280
-
281
- <div id="instance_attr_details" class="attr_details">
282
- <h2>Instance Attribute Details</h2>
283
-
284
-
285
- <span id=""></span>
286
- <div class="method_details first">
287
- <h3 class="signature first" id="response-instance_method">
288
-
289
- - (<tt>Object</tt>) <strong>response</strong> <span class="extras">(readonly)</span>
290
-
291
-
292
-
293
-
294
-
295
- </h3><div class="docstring">
296
- <div class="discussion">
297
-
298
- <p>Returns the value of attribute response</p>
299
-
300
-
301
- </div>
302
- </div>
303
- <div class="tags">
304
-
305
-
306
- </div><table class="source_code">
307
- <tr>
308
- <td>
309
- <pre class="lines">
310
-
311
-
312
- 5
313
- 6
314
- 7</pre>
315
- </td>
316
- <td>
317
- <pre class="code"><span class="info file"># File 'lib/contentful/error.rb', line 5</span>
318
-
319
- <span class='kw'>def</span> <span class='id identifier rubyid_response'>response</span>
320
- <span class='ivar'>@response</span>
321
- <span class='kw'>end</span></pre>
322
- </td>
323
- </tr>
324
- </table>
325
- </div>
326
-
327
- </div>
328
-
329
-
330
- <div id="class_method_details" class="method_details_list">
331
- <h2>Class Method Details</h2>
332
-
333
-
334
- <div class="method_details first">
335
- <h3 class="signature first" id="[]-class_method">
336
-
337
- + (<tt>Object</tt>) <strong>[]</strong>(no)
338
-
339
-
340
-
341
-
342
-
343
- </h3><div class="docstring">
344
- <div class="discussion">
345
-
346
- <p>Shortcut for creating specialized error classes USAGE rescue <a
347
- href="http://404">Contentful::Error</a></p>
348
-
349
-
350
- </div>
351
- </div>
352
- <div class="tags">
353
-
354
-
355
- </div><table class="source_code">
356
- <tr>
357
- <td>
358
- <pre class="lines">
359
-
360
-
361
- 14
362
- 15
363
- 16
364
- 17
365
- 18
366
- 19
367
- 20
368
- 21
369
- 22
370
- 23
371
- 24
372
- 25
373
- 26
374
- 27
375
- 28
376
- 29</pre>
377
- </td>
378
- <td>
379
- <pre class="code"><span class="info file"># File 'lib/contentful/error.rb', line 14</span>
380
-
381
- <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='op'>[]</span><span class='lparen'>(</span><span class='id identifier rubyid_no'>no</span><span class='rparen'>)</span>
382
- <span class='kw'>case</span> <span class='id identifier rubyid_no'>no</span>
383
- <span class='kw'>when</span> <span class='int'>404</span>
384
- <span class='const'>NotFound</span>
385
- <span class='kw'>when</span> <span class='int'>400</span>
386
- <span class='const'>BadRequest</span>
387
- <span class='kw'>when</span> <span class='int'>403</span>
388
- <span class='const'>AccessDenied</span>
389
- <span class='kw'>when</span> <span class='int'>401</span>
390
- <span class='const'>Unauthorized</span>
391
- <span class='kw'>when</span> <span class='int'>500</span>
392
- <span class='const'>ServerError</span>
393
- <span class='kw'>else</span>
394
- <span class='const'>Error</span>
395
- <span class='kw'>end</span>
396
- <span class='kw'>end</span></pre>
397
- </td>
398
- </tr>
399
- </table>
400
- </div>
401
-
402
- </div>
403
-
404
- </div>
405
-
406
- <div id="footer">
407
- Generated on Tue Mar 11 09:25:52 2014 by
408
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
409
- 0.8.7.3 (ruby-1.9.3).
410
- </div>
411
-
412
- </body>
413
- </html>