contentful 2.1.3 → 2.2.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 +4 -4
- data/CHANGELOG.md +8 -0
- data/Gemfile.lock +24 -26
- data/README.md +5 -0
- data/coverage/.last_run.json +1 -1
- data/coverage/.resultset.json +2399 -460
- data/coverage/assets/{0.10.1 → 0.10.2}/application.css +0 -0
- data/coverage/assets/{0.10.1 → 0.10.2}/application.js +0 -0
- data/coverage/assets/{0.10.1 → 0.10.2}/colorbox/border.png +0 -0
- data/coverage/assets/{0.10.1 → 0.10.2}/colorbox/controls.png +0 -0
- data/coverage/assets/{0.10.1 → 0.10.2}/colorbox/loading.gif +0 -0
- data/coverage/assets/{0.10.1 → 0.10.2}/colorbox/loading_background.png +0 -0
- data/coverage/assets/{0.10.1 → 0.10.2}/favicon_green.png +0 -0
- data/coverage/assets/{0.10.1 → 0.10.2}/favicon_red.png +0 -0
- data/coverage/assets/{0.10.1 → 0.10.2}/favicon_yellow.png +0 -0
- data/coverage/assets/{0.10.1 → 0.10.2}/loading.gif +0 -0
- data/coverage/assets/{0.10.1 → 0.10.2}/magnify.png +0 -0
- data/coverage/assets/{0.10.1 → 0.10.2}/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/coverage/assets/{0.10.1 → 0.10.2}/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/coverage/assets/{0.10.1 → 0.10.2}/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/coverage/assets/{0.10.1 → 0.10.2}/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/coverage/assets/{0.10.1 → 0.10.2}/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/coverage/assets/{0.10.1 → 0.10.2}/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/coverage/assets/{0.10.1 → 0.10.2}/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/coverage/assets/{0.10.1 → 0.10.2}/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/coverage/assets/{0.10.1 → 0.10.2}/smoothness/images/ui-icons_222222_256x240.png +0 -0
- data/coverage/assets/{0.10.1 → 0.10.2}/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
- data/coverage/assets/{0.10.1 → 0.10.2}/smoothness/images/ui-icons_454545_256x240.png +0 -0
- data/coverage/assets/{0.10.1 → 0.10.2}/smoothness/images/ui-icons_888888_256x240.png +0 -0
- data/coverage/assets/{0.10.1 → 0.10.2}/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/coverage/index.html +17490 -3213
- data/doc/Contentful.html +3 -3
- data/doc/Contentful/AccessDenied.html +1 -1
- data/doc/Contentful/Array.html +1 -1
- data/doc/Contentful/ArrayCoercion.html +7 -7
- data/doc/Contentful/ArrayLike.html +1 -1
- data/doc/Contentful/Asset.html +1 -1
- data/doc/Contentful/BadGateway.html +159 -0
- data/doc/Contentful/BadRequest.html +1 -1
- data/doc/Contentful/BaseCoercion.html +1 -1
- data/doc/Contentful/BaseResource.html +2 -2
- data/doc/Contentful/BooleanCoercion.html +1 -1
- data/doc/Contentful/Client.html +20 -26
- data/doc/Contentful/ContentType.html +7 -1
- data/doc/Contentful/ContentTypeCache.html +1 -1
- data/doc/Contentful/DateCoercion.html +1 -1
- data/doc/Contentful/DeletedAsset.html +1 -1
- data/doc/Contentful/DeletedEntry.html +1 -1
- data/doc/Contentful/Entry.html +1 -1
- data/doc/Contentful/Error.html +16 -28
- data/doc/Contentful/Field.html +1 -1
- data/doc/Contentful/FieldsResource.html +1 -1
- data/doc/Contentful/File.html +8 -308
- data/doc/Contentful/FloatCoercion.html +1 -1
- data/doc/Contentful/IntegerCoercion.html +1 -1
- data/doc/Contentful/Link.html +1 -1
- data/doc/Contentful/LinkCoercion.html +1 -1
- data/doc/Contentful/Locale.html +1 -1
- data/doc/Contentful/Location.html +1 -1
- data/doc/Contentful/LocationCoercion.html +1 -1
- data/doc/Contentful/NotFound.html +1 -1
- data/doc/Contentful/ObjectCoercion.html +2 -2
- data/doc/Contentful/RateLimitExceeded.html +183 -2
- data/doc/Contentful/Request.html +1 -1
- data/doc/Contentful/ResourceBuilder.html +1 -1
- data/doc/Contentful/Response.html +72 -1
- data/doc/Contentful/ServerError.html +1 -1
- data/doc/Contentful/ServiceUnavailable.html +1 -1
- data/doc/Contentful/Space.html +1 -1
- data/doc/Contentful/StringCoercion.html +1 -1
- data/doc/Contentful/Support.html +49 -27
- data/doc/Contentful/SymbolCoercion.html +1 -1
- data/doc/Contentful/Sync.html +1 -1
- data/doc/Contentful/SyncPage.html +1 -1
- data/doc/Contentful/TextCoercion.html +1 -1
- data/doc/Contentful/Unauthorized.html +1 -1
- data/doc/Contentful/UnparsableJson.html +1 -1
- data/doc/Contentful/UnparsableResource.html +1 -1
- data/doc/_index.html +8 -1
- data/doc/class_list.html +1 -1
- data/doc/file.CHANGELOG.html +15 -1
- data/doc/file.LICENSE.html +1 -1
- data/doc/file.README.html +8 -1
- data/doc/index.html +8 -1
- data/doc/method_list.html +147 -155
- data/doc/top-level-namespace.html +1 -1
- data/lib/contentful/asset.rb +2 -2
- data/lib/contentful/base_resource.rb +3 -3
- data/lib/contentful/client.rb +3 -3
- data/lib/contentful/coercions.rb +1 -20
- data/lib/contentful/content_type.rb +2 -0
- data/lib/contentful/entry.rb +4 -2
- data/lib/contentful/error.rb +168 -29
- data/lib/contentful/fields_resource.rb +8 -5
- data/lib/contentful/file.rb +14 -6
- data/lib/contentful/response.rb +5 -4
- data/lib/contentful/support.rb +4 -1
- data/lib/contentful/version.rb +1 -1
- data/spec/asset_spec.rb +9 -0
- data/spec/content_type_spec.rb +10 -0
- data/spec/deleted_asset_spec.rb +10 -0
- data/spec/deleted_entry_spec.rb +10 -0
- data/spec/entry_spec.rb +11 -0
- data/spec/error_class_spec.rb +244 -3
- data/spec/field_spec.rb +21 -0
- data/spec/file_spec.rb +10 -0
- data/spec/fixtures/json_responses/400_details_errors_object.json +14 -0
- data/spec/fixtures/json_responses/400_details_errors_string.json +12 -0
- data/spec/fixtures/json_responses/400_details_string.json +8 -0
- data/spec/fixtures/json_responses/403_reasons.json +13 -0
- data/spec/fixtures/json_responses/404_id.json +11 -0
- data/spec/fixtures/json_responses/404_type.json +10 -0
- data/spec/fixtures/json_responses/default_400.json +7 -0
- data/spec/fixtures/json_responses/default_401.json +7 -0
- data/spec/fixtures/json_responses/default_403.json +7 -0
- data/spec/fixtures/json_responses/default_404.json +7 -0
- data/spec/fixtures/json_responses/default_429.json +7 -0
- data/spec/fixtures/json_responses/default_500.json +7 -0
- data/spec/fixtures/json_responses/default_502.json +7 -0
- data/spec/fixtures/json_responses/default_503.json +7 -0
- data/spec/fixtures/json_responses/other_error.json +9 -0
- data/spec/fixtures/json_responses/other_error_no_details.json +8 -0
- data/spec/fixtures/json_responses/other_error_no_message.json +8 -0
- data/spec/fixtures/json_responses/other_error_no_request_id.json +8 -0
- data/spec/fixtures/json_responses/other_error_nothing.json +6 -0
- data/spec/link_spec.rb +9 -0
- data/spec/support/json_responses.rb +4 -2
- metadata +66 -27
|
@@ -228,7 +228,7 @@
|
|
|
228
228
|
</div>
|
|
229
229
|
|
|
230
230
|
<div id="footer">
|
|
231
|
-
Generated on
|
|
231
|
+
Generated on Tue Oct 24 14:05:58 2017 by
|
|
232
232
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
233
233
|
0.9.9 (ruby-2.4.1).
|
|
234
234
|
</div>
|
|
@@ -228,7 +228,7 @@
|
|
|
228
228
|
</div>
|
|
229
229
|
|
|
230
230
|
<div id="footer">
|
|
231
|
-
Generated on
|
|
231
|
+
Generated on Tue Oct 24 14:05:58 2017 by
|
|
232
232
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
233
233
|
0.9.9 (ruby-2.4.1).
|
|
234
234
|
</div>
|
data/doc/Contentful/Link.html
CHANGED
|
@@ -239,7 +239,7 @@ optional query hash</p>
|
|
|
239
239
|
</div>
|
|
240
240
|
|
|
241
241
|
<div id="footer">
|
|
242
|
-
Generated on
|
|
242
|
+
Generated on Tue Oct 24 14:05:58 2017 by
|
|
243
243
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
244
244
|
0.9.9 (ruby-2.4.1).
|
|
245
245
|
</div>
|
|
@@ -148,7 +148,7 @@ Only present as a placeholder for proper resolution within ContentType.</p>
|
|
|
148
148
|
</div>
|
|
149
149
|
|
|
150
150
|
<div id="footer">
|
|
151
|
-
Generated on
|
|
151
|
+
Generated on Tue Oct 24 14:05:58 2017 by
|
|
152
152
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
153
153
|
0.9.9 (ruby-2.4.1).
|
|
154
154
|
</div>
|
data/doc/Contentful/Locale.html
CHANGED
|
@@ -435,7 +435,7 @@ href="https://www.contentful.com/developers/documentation/content-delivery-api/#
|
|
|
435
435
|
</div>
|
|
436
436
|
|
|
437
437
|
<div id="footer">
|
|
438
|
-
Generated on
|
|
438
|
+
Generated on Tue Oct 24 14:05:58 2017 by
|
|
439
439
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
440
440
|
0.9.9 (ruby-2.4.1).
|
|
441
441
|
</div>
|
|
@@ -373,7 +373,7 @@ href="https://www.contentful.com/developers/documentation/content-delivery-api/#
|
|
|
373
373
|
</div>
|
|
374
374
|
|
|
375
375
|
<div id="footer">
|
|
376
|
-
Generated on
|
|
376
|
+
Generated on Tue Oct 24 14:05:58 2017 by
|
|
377
377
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
378
378
|
0.9.9 (ruby-2.4.1).
|
|
379
379
|
</div>
|
|
@@ -228,7 +228,7 @@
|
|
|
228
228
|
</div>
|
|
229
229
|
|
|
230
230
|
<div id="footer">
|
|
231
|
-
Generated on
|
|
231
|
+
Generated on Tue Oct 24 14:05:58 2017 by
|
|
232
232
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
233
233
|
0.9.9 (ruby-2.4.1).
|
|
234
234
|
</div>
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
</div>
|
|
150
150
|
|
|
151
151
|
<div id="footer">
|
|
152
|
-
Generated on
|
|
152
|
+
Generated on Tue Oct 24 14:05:58 2017 by
|
|
153
153
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
154
154
|
0.9.9 (ruby-2.4.1).
|
|
155
155
|
</div>
|
|
@@ -216,7 +216,7 @@
|
|
|
216
216
|
<pre class="code"><span class="info file"># File 'lib/contentful/coercions.rb', line 77</span>
|
|
217
217
|
|
|
218
218
|
<span class='kw'>def</span> <span class='id identifier rubyid_coerce'>coerce</span>
|
|
219
|
-
<span class='id identifier
|
|
219
|
+
<span class='const'>JSON</span><span class='period'>.</span><span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='const'>JSON</span><span class='period'>.</span><span class='id identifier rubyid_dump'>dump</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='label'>symbolize_names:</span> <span class='kw'>true</span><span class='rparen'>)</span>
|
|
220
220
|
<span class='kw'>end</span></pre>
|
|
221
221
|
</td>
|
|
222
222
|
</tr>
|
|
@@ -228,7 +228,7 @@
|
|
|
228
228
|
</div>
|
|
229
229
|
|
|
230
230
|
<div id="footer">
|
|
231
|
-
Generated on
|
|
231
|
+
Generated on Tue Oct 24 14:05:58 2017 by
|
|
232
232
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
233
233
|
0.9.9 (ruby-2.4.1).
|
|
234
234
|
</div>
|
|
@@ -115,6 +115,27 @@
|
|
|
115
115
|
|
|
116
116
|
|
|
117
117
|
</div>
|
|
118
|
+
<h2>Constant Summary</h2>
|
|
119
|
+
<dl class="constants">
|
|
120
|
+
|
|
121
|
+
<dt id="RATE_LIMIT_RESET_HEADER_KEY-constant" class="">RATE_LIMIT_RESET_HEADER_KEY =
|
|
122
|
+
<div class="docstring">
|
|
123
|
+
<div class="discussion">
|
|
124
|
+
|
|
125
|
+
<p>Rate Limit Reset Header Key</p>
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
</div>
|
|
129
|
+
</div>
|
|
130
|
+
<div class="tags">
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
</div>
|
|
134
|
+
</dt>
|
|
135
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>x-contentful-ratelimit-reset</span><span class='tstring_end'>'</span></span></pre></dd>
|
|
136
|
+
|
|
137
|
+
</dl>
|
|
138
|
+
|
|
118
139
|
|
|
119
140
|
|
|
120
141
|
|
|
@@ -126,14 +147,71 @@
|
|
|
126
147
|
<p class="inherited"><span class='object_link'><a href="Error.html#response-instance_method" title="Contentful::Error#response (method)">#response</a></span></p>
|
|
127
148
|
|
|
128
149
|
|
|
150
|
+
|
|
151
|
+
<h2>
|
|
152
|
+
Instance Method Summary
|
|
153
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
|
154
|
+
</h2>
|
|
155
|
+
|
|
156
|
+
<ul class="summary">
|
|
157
|
+
|
|
158
|
+
<li class="public ">
|
|
159
|
+
<span class="summary_signature">
|
|
160
|
+
|
|
161
|
+
<a href="#reset_time-instance_method" title="#reset_time (instance method)">#<strong>reset_time</strong> ⇒ Object </a>
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
</span>
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
<span class="summary_desc"><div class='inline'>
|
|
176
|
+
<p>Time until next available request, in seconds.</p>
|
|
177
|
+
</div></span>
|
|
178
|
+
|
|
179
|
+
</li>
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
<li class="public ">
|
|
183
|
+
<span class="summary_signature">
|
|
184
|
+
|
|
185
|
+
<a href="#reset_time%3F-instance_method" title="#reset_time? (instance method)">#<strong>reset_time?</strong> ⇒ Boolean </a>
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
</span>
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
|
|
129
197
|
|
|
130
198
|
|
|
199
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
|
200
|
+
|
|
201
|
+
</li>
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
</ul>
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
131
210
|
|
|
132
211
|
|
|
133
212
|
|
|
134
213
|
|
|
135
214
|
|
|
136
|
-
<h2>Method Summary</h2>
|
|
137
215
|
|
|
138
216
|
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Error.html" title="Contentful::Error (class)">Error</a></span></h3>
|
|
139
217
|
<p class="inherited"><span class='object_link'><a href="Error.html#[]-class_method" title="Contentful::Error.[] (method)">[]</a></span>, <span class='object_link'><a href="Error.html#initialize-instance_method" title="Contentful::Error#initialize (method)">#initialize</a></span></p>
|
|
@@ -146,10 +224,113 @@
|
|
|
146
224
|
</div>
|
|
147
225
|
|
|
148
226
|
|
|
227
|
+
<div id="instance_method_details" class="method_details_list">
|
|
228
|
+
<h2>Instance Method Details</h2>
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
<div class="method_details first">
|
|
232
|
+
<h3 class="signature first" id="reset_time-instance_method">
|
|
233
|
+
|
|
234
|
+
#<strong>reset_time</strong> ⇒ <tt>Object</tt>
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
</h3><div class="docstring">
|
|
241
|
+
<div class="discussion">
|
|
242
|
+
|
|
243
|
+
<p>Time until next available request, in seconds.</p>
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
</div>
|
|
247
|
+
</div>
|
|
248
|
+
<div class="tags">
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
</div><table class="source_code">
|
|
252
|
+
<tr>
|
|
253
|
+
<td>
|
|
254
|
+
<pre class="lines">
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
144
|
|
258
|
+
145
|
|
259
|
+
146</pre>
|
|
260
|
+
</td>
|
|
261
|
+
<td>
|
|
262
|
+
<pre class="code"><span class="info file"># File 'lib/contentful/error.rb', line 144</span>
|
|
263
|
+
|
|
264
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_reset_time'>reset_time</span>
|
|
265
|
+
<span class='ivar'>@reset_time</span> <span class='op'>||=</span> <span class='ivar'>@response</span><span class='period'>.</span><span class='id identifier rubyid_raw'>raw</span><span class='lbracket'>[</span><span class='const'><span class='object_link'><a href="#RATE_LIMIT_RESET_HEADER_KEY-constant" title="Contentful::RateLimitExceeded::RATE_LIMIT_RESET_HEADER_KEY (constant)">RATE_LIMIT_RESET_HEADER_KEY</a></span></span><span class='rbracket'>]</span>
|
|
266
|
+
<span class='kw'>end</span></pre>
|
|
267
|
+
</td>
|
|
268
|
+
</tr>
|
|
269
|
+
</table>
|
|
270
|
+
</div>
|
|
271
|
+
|
|
272
|
+
<div class="method_details ">
|
|
273
|
+
<h3 class="signature " id="reset_time?-instance_method">
|
|
274
|
+
|
|
275
|
+
#<strong>reset_time?</strong> ⇒ <tt>Boolean</tt>
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
</h3><div class="docstring">
|
|
282
|
+
<div class="discussion">
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
</div>
|
|
286
|
+
</div>
|
|
287
|
+
<div class="tags">
|
|
288
|
+
|
|
289
|
+
<p class="tag_title">Returns:</p>
|
|
290
|
+
<ul class="return">
|
|
291
|
+
|
|
292
|
+
<li>
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
</li>
|
|
300
|
+
|
|
301
|
+
</ul>
|
|
302
|
+
|
|
303
|
+
</div><table class="source_code">
|
|
304
|
+
<tr>
|
|
305
|
+
<td>
|
|
306
|
+
<pre class="lines">
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
137
|
|
310
|
+
138
|
|
311
|
+
139
|
|
312
|
+
140
|
|
313
|
+
141</pre>
|
|
314
|
+
</td>
|
|
315
|
+
<td>
|
|
316
|
+
<pre class="code"><span class="info file"># File 'lib/contentful/error.rb', line 137</span>
|
|
317
|
+
|
|
318
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_reset_time?'>reset_time?</span>
|
|
319
|
+
<span class='comment'># rubocop:disable Style/DoubleNegation
|
|
320
|
+
</span> <span class='op'>!</span><span class='op'>!</span><span class='id identifier rubyid_reset_time'>reset_time</span>
|
|
321
|
+
<span class='comment'># rubocop:enable Style/DoubleNegation
|
|
322
|
+
</span><span class='kw'>end</span></pre>
|
|
323
|
+
</td>
|
|
324
|
+
</tr>
|
|
325
|
+
</table>
|
|
326
|
+
</div>
|
|
327
|
+
|
|
328
|
+
</div>
|
|
329
|
+
|
|
149
330
|
</div>
|
|
150
331
|
|
|
151
332
|
<div id="footer">
|
|
152
|
-
Generated on
|
|
333
|
+
Generated on Tue Oct 24 14:05:58 2017 by
|
|
153
334
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
154
335
|
0.9.9 (ruby-2.4.1).
|
|
155
336
|
</div>
|
data/doc/Contentful/Request.html
CHANGED
|
@@ -877,7 +877,7 @@ Request's #url and #query methods to execute the HTTP request.</p>
|
|
|
877
877
|
</div>
|
|
878
878
|
|
|
879
879
|
<div id="footer">
|
|
880
|
-
Generated on
|
|
880
|
+
Generated on Tue Oct 24 14:05:58 2017 by
|
|
881
881
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
882
882
|
0.9.9 (ruby-2.4.1).
|
|
883
883
|
</div>
|
|
@@ -957,7 +957,7 @@ Contentful::Error See example/resource_mapping.rb for advanced usage</p>
|
|
|
957
957
|
</div>
|
|
958
958
|
|
|
959
959
|
<div id="footer">
|
|
960
|
-
Generated on
|
|
960
|
+
Generated on Tue Oct 24 14:05:59 2017 by
|
|
961
961
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
962
962
|
0.9.9 (ruby-2.4.1).
|
|
963
963
|
</div>
|
|
@@ -325,6 +325,30 @@ library) to a JSON object. Responses can be asked the following methods:</p>
|
|
|
325
325
|
<p>A new instance of Response.</p>
|
|
326
326
|
</div></span>
|
|
327
327
|
|
|
328
|
+
</li>
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
<li class="public ">
|
|
332
|
+
<span class="summary_signature">
|
|
333
|
+
|
|
334
|
+
<a href="#load_json-instance_method" title="#load_json (instance method)">#<strong>load_json</strong> ⇒ Object </a>
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
</span>
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
<span class="summary_desc"><div class='inline'>
|
|
349
|
+
<p>Returns the JSON body of the response.</p>
|
|
350
|
+
</div></span>
|
|
351
|
+
|
|
328
352
|
</li>
|
|
329
353
|
|
|
330
354
|
|
|
@@ -626,10 +650,57 @@ library) to a JSON object. Responses can be asked the following methods:</p>
|
|
|
626
650
|
</div>
|
|
627
651
|
|
|
628
652
|
|
|
653
|
+
<div id="instance_method_details" class="method_details_list">
|
|
654
|
+
<h2>Instance Method Details</h2>
|
|
655
|
+
|
|
656
|
+
|
|
657
|
+
<div class="method_details first">
|
|
658
|
+
<h3 class="signature first" id="load_json-instance_method">
|
|
659
|
+
|
|
660
|
+
#<strong>load_json</strong> ⇒ <tt>Object</tt>
|
|
661
|
+
|
|
662
|
+
|
|
663
|
+
|
|
664
|
+
|
|
665
|
+
|
|
666
|
+
</h3><div class="docstring">
|
|
667
|
+
<div class="discussion">
|
|
668
|
+
|
|
669
|
+
<p>Returns the JSON body of the response</p>
|
|
670
|
+
|
|
671
|
+
|
|
672
|
+
</div>
|
|
673
|
+
</div>
|
|
674
|
+
<div class="tags">
|
|
675
|
+
|
|
676
|
+
|
|
677
|
+
</div><table class="source_code">
|
|
678
|
+
<tr>
|
|
679
|
+
<td>
|
|
680
|
+
<pre class="lines">
|
|
681
|
+
|
|
682
|
+
|
|
683
|
+
45
|
|
684
|
+
46
|
|
685
|
+
47</pre>
|
|
686
|
+
</td>
|
|
687
|
+
<td>
|
|
688
|
+
<pre class="code"><span class="info file"># File 'lib/contentful/response.rb', line 45</span>
|
|
689
|
+
|
|
690
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_load_json'>load_json</span>
|
|
691
|
+
<span class='const'>MultiJson</span><span class='period'>.</span><span class='id identifier rubyid_load'>load</span><span class='lparen'>(</span><span class='id identifier rubyid_unzip_response'>unzip_response</span><span class='lparen'>(</span><span class='id identifier rubyid_raw'>raw</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
|
692
|
+
<span class='kw'>end</span></pre>
|
|
693
|
+
</td>
|
|
694
|
+
</tr>
|
|
695
|
+
</table>
|
|
696
|
+
</div>
|
|
697
|
+
|
|
698
|
+
</div>
|
|
699
|
+
|
|
629
700
|
</div>
|
|
630
701
|
|
|
631
702
|
<div id="footer">
|
|
632
|
-
Generated on
|
|
703
|
+
Generated on Tue Oct 24 14:05:58 2017 by
|
|
633
704
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
634
705
|
0.9.9 (ruby-2.4.1).
|
|
635
706
|
</div>
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
</div>
|
|
150
150
|
|
|
151
151
|
<div id="footer">
|
|
152
|
-
Generated on
|
|
152
|
+
Generated on Tue Oct 24 14:05:58 2017 by
|
|
153
153
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
154
154
|
0.9.9 (ruby-2.4.1).
|
|
155
155
|
</div>
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
</div>
|
|
150
150
|
|
|
151
151
|
<div id="footer">
|
|
152
|
-
Generated on
|
|
152
|
+
Generated on Tue Oct 24 14:05:58 2017 by
|
|
153
153
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
154
154
|
0.9.9 (ruby-2.4.1).
|
|
155
155
|
</div>
|
data/doc/Contentful/Space.html
CHANGED
|
@@ -383,7 +383,7 @@ href="https://www.contentful.com/developers/documentation/content-delivery-api/#
|
|
|
383
383
|
</div>
|
|
384
384
|
|
|
385
385
|
<div id="footer">
|
|
386
|
-
Generated on
|
|
386
|
+
Generated on Tue Oct 24 14:05:58 2017 by
|
|
387
387
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
388
388
|
0.9.9 (ruby-2.4.1).
|
|
389
389
|
</div>
|