contentful 2.1.1 → 2.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -0
  3. data/Gemfile.lock +37 -46
  4. data/lib/contentful/array.rb +8 -1
  5. data/lib/contentful/entry.rb +9 -9
  6. data/lib/contentful/fields_resource.rb +9 -8
  7. data/lib/contentful/resource_builder.rb +1 -7
  8. data/lib/contentful/support.rb +22 -0
  9. data/lib/contentful/version.rb +1 -1
  10. data/spec/array_spec.rb +21 -0
  11. data/spec/fixtures/vcr_cassettes/array/nested_resources.yml +159 -0
  12. metadata +5 -106
  13. data/coverage/.last_run.json +0 -5
  14. data/coverage/.resultset.json +0 -1887
  15. data/coverage/.resultset.json.lock +0 -0
  16. data/coverage/assets/0.10.0/application.css +0 -799
  17. data/coverage/assets/0.10.0/application.js +0 -1707
  18. data/coverage/assets/0.10.0/colorbox/border.png +0 -0
  19. data/coverage/assets/0.10.0/colorbox/controls.png +0 -0
  20. data/coverage/assets/0.10.0/colorbox/loading.gif +0 -0
  21. data/coverage/assets/0.10.0/colorbox/loading_background.png +0 -0
  22. data/coverage/assets/0.10.0/favicon_green.png +0 -0
  23. data/coverage/assets/0.10.0/favicon_red.png +0 -0
  24. data/coverage/assets/0.10.0/favicon_yellow.png +0 -0
  25. data/coverage/assets/0.10.0/loading.gif +0 -0
  26. data/coverage/assets/0.10.0/magnify.png +0 -0
  27. data/coverage/assets/0.10.0/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  28. data/coverage/assets/0.10.0/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  29. data/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  30. data/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  31. data/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  32. data/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  33. data/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  34. data/coverage/assets/0.10.0/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  35. data/coverage/assets/0.10.0/smoothness/images/ui-icons_222222_256x240.png +0 -0
  36. data/coverage/assets/0.10.0/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  37. data/coverage/assets/0.10.0/smoothness/images/ui-icons_454545_256x240.png +0 -0
  38. data/coverage/assets/0.10.0/smoothness/images/ui-icons_888888_256x240.png +0 -0
  39. data/coverage/assets/0.10.0/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  40. data/coverage/index.html +0 -11816
  41. data/doc/Contentful.html +0 -153
  42. data/doc/Contentful/AccessDenied.html +0 -161
  43. data/doc/Contentful/Array.html +0 -743
  44. data/doc/Contentful/ArrayCoercion.html +0 -244
  45. data/doc/Contentful/ArrayLike.html +0 -627
  46. data/doc/Contentful/Asset.html +0 -475
  47. data/doc/Contentful/BadRequest.html +0 -161
  48. data/doc/Contentful/BaseCoercion.html +0 -447
  49. data/doc/Contentful/BaseResource.html +0 -599
  50. data/doc/Contentful/BooleanCoercion.html +0 -244
  51. data/doc/Contentful/Client.html +0 -1606
  52. data/doc/Contentful/Constants.html +0 -636
  53. data/doc/Contentful/ContentType.html +0 -614
  54. data/doc/Contentful/ContentTypeCache.html +0 -430
  55. data/doc/Contentful/DateCoercion.html +0 -240
  56. data/doc/Contentful/DeletedAsset.html +0 -159
  57. data/doc/Contentful/DeletedEntry.html +0 -159
  58. data/doc/Contentful/DynamicEntry.html +0 -214
  59. data/doc/Contentful/Entry.html +0 -273
  60. data/doc/Contentful/Error.html +0 -424
  61. data/doc/Contentful/Field.html +0 -929
  62. data/doc/Contentful/FieldsResource.html +0 -501
  63. data/doc/Contentful/File.html +0 -520
  64. data/doc/Contentful/FloatCoercion.html +0 -240
  65. data/doc/Contentful/IntegerCoercion.html +0 -240
  66. data/doc/Contentful/Link.html +0 -251
  67. data/doc/Contentful/LinkCoercion.html +0 -160
  68. data/doc/Contentful/Locale.html +0 -447
  69. data/doc/Contentful/Location.html +0 -385
  70. data/doc/Contentful/LocationCoercion.html +0 -240
  71. data/doc/Contentful/NotFound.html +0 -161
  72. data/doc/Contentful/ObjectCoercion.html +0 -240
  73. data/doc/Contentful/RateLimitExceeded.html +0 -161
  74. data/doc/Contentful/Request.html +0 -889
  75. data/doc/Contentful/Resource.html +0 -117
  76. data/doc/Contentful/Resource/ArrayLike.html +0 -627
  77. data/doc/Contentful/Resource/AssetFields.html +0 -246
  78. data/doc/Contentful/Resource/AssetFields/ClassMethods.html +0 -174
  79. data/doc/Contentful/Resource/ClassMethods.html +0 -378
  80. data/doc/Contentful/Resource/CustomResource.html +0 -119
  81. data/doc/Contentful/Resource/Fields.html +0 -288
  82. data/doc/Contentful/Resource/Fields/ClassMethods.html +0 -187
  83. data/doc/Contentful/Resource/LocalizedFields.html +0 -305
  84. data/doc/Contentful/Resource/SystemProperties.html +0 -205
  85. data/doc/Contentful/Resource/SystemProperties/ClassMethods.html +0 -174
  86. data/doc/Contentful/ResourceBuilder.html +0 -969
  87. data/doc/Contentful/Response.html +0 -641
  88. data/doc/Contentful/ServerError.html +0 -161
  89. data/doc/Contentful/ServiceUnavailable.html +0 -161
  90. data/doc/Contentful/Space.html +0 -395
  91. data/doc/Contentful/StringCoercion.html +0 -244
  92. data/doc/Contentful/Support.html +0 -550
  93. data/doc/Contentful/SymbolCoercion.html +0 -171
  94. data/doc/Contentful/Sync.html +0 -655
  95. data/doc/Contentful/SyncPage.html +0 -801
  96. data/doc/Contentful/TextCoercion.html +0 -171
  97. data/doc/Contentful/Unauthorized.html +0 -161
  98. data/doc/Contentful/UnparsableJson.html +0 -161
  99. data/doc/Contentful/UnparsableResource.html +0 -137
  100. data/doc/_index.html +0 -537
  101. data/doc/class_list.html +0 -51
  102. data/doc/css/common.css +0 -1
  103. data/doc/css/full_list.css +0 -58
  104. data/doc/css/style.css +0 -481
  105. data/doc/file.CHANGELOG.html +0 -506
  106. data/doc/file.LICENSE.html +0 -72
  107. data/doc/file.README.html +0 -565
  108. data/doc/file_list.html +0 -66
  109. data/doc/frames.html +0 -17
  110. data/doc/index.html +0 -565
  111. data/doc/js/app.js +0 -243
  112. data/doc/js/full_list.js +0 -216
  113. data/doc/js/jquery.js +0 -4
  114. data/doc/method_list.html +0 -1115
  115. data/doc/top-level-namespace.html +0 -112
@@ -1,599 +0,0 @@
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
- Class: Contentful::BaseResource
8
-
9
- &mdash; Documentation by YARD 0.9.5
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
- pathId = "Contentful::BaseResource";
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"></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 (B)</a> &raquo;
40
- <span class='title'><span class='object_link'><a href="../Contentful.html" title="Contentful (module)">Contentful</a></span></span>
41
- &raquo;
42
- <span class="title">BaseResource</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
- <iframe id="search_frame" src="../class_list.html"></iframe>
63
-
64
- <div id="content"><h1>Class: Contentful::BaseResource
65
-
66
-
67
-
68
- </h1>
69
- <div class="box_info">
70
-
71
- <dl>
72
- <dt>Inherits:</dt>
73
- <dd>
74
- <span class="inheritName">Object</span>
75
-
76
- <ul class="fullTree">
77
- <li>Object</li>
78
-
79
- <li class="next">Contentful::BaseResource</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/contentful/base_resource.rb</dd>
100
- </dl>
101
-
102
- </div>
103
-
104
- <h2>Overview</h2><div class="docstring">
105
- <div class="discussion">
106
-
107
- <p>Base definition of a Contentful Resource containing Sys properties</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="Array.html" title="Contentful::Array (class)">Array</a></span>, <span class='object_link'><a href="ContentType.html" title="Contentful::ContentType (class)">ContentType</a></span>, <span class='object_link'><a href="DeletedAsset.html" title="Contentful::DeletedAsset (class)">DeletedAsset</a></span>, <span class='object_link'><a href="DeletedEntry.html" title="Contentful::DeletedEntry (class)">DeletedEntry</a></span>, <span class='object_link'><a href="FieldsResource.html" title="Contentful::FieldsResource (class)">FieldsResource</a></span>, <span class='object_link'><a href="Link.html" title="Contentful::Link (class)">Link</a></span>, <span class='object_link'><a href="Space.html" title="Contentful::Space (class)">Space</a></span>, <span class='object_link'><a href="SyncPage.html" title="Contentful::SyncPage (class)">SyncPage</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="#default_locale-instance_method" title="#default_locale (instance method)">#<strong>default_locale</strong> &#x21d2; Object </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>Returns the value of attribute default_locale.</p>
150
- </div></span>
151
-
152
- </li>
153
-
154
-
155
- <li class="public ">
156
- <span class="summary_signature">
157
-
158
- <a href="#raw-instance_method" title="#raw (instance method)">#<strong>raw</strong> &#x21d2; Object </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>Returns the value of attribute raw.</p>
179
- </div></span>
180
-
181
- </li>
182
-
183
-
184
- <li class="public ">
185
- <span class="summary_signature">
186
-
187
- <a href="#sys-instance_method" title="#sys (instance method)">#<strong>sys</strong> &#x21d2; Object </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>Returns the value of attribute sys.</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="#%3D%3D-instance_method" title="#== (instance method)">#<strong>==</strong>(other) &#x21d2; Object </a>
230
-
231
-
232
-
233
- </span>
234
-
235
-
236
-
237
-
238
-
239
-
240
-
241
-
242
-
243
- <span class="summary_desc"><div class='inline'>
244
- <p>Definition of equality.</p>
245
- </div></span>
246
-
247
- </li>
248
-
249
-
250
- <li class="public ">
251
- <span class="summary_signature">
252
-
253
- <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(item, configuration = {}, _localized = false, _includes = [], depth = 0) &#x21d2; BaseResource </a>
254
-
255
-
256
-
257
- </span>
258
-
259
-
260
- <span class="note title constructor">constructor</span>
261
-
262
-
263
-
264
-
265
-
266
-
267
-
268
-
269
- <span class="summary_desc"><div class='inline'>
270
- <p>A new instance of BaseResource.</p>
271
- </div></span>
272
-
273
- </li>
274
-
275
-
276
- <li class="public ">
277
- <span class="summary_signature">
278
-
279
- <a href="#reload-instance_method" title="#reload (instance method)">#<strong>reload</strong>(client = nil) &#x21d2; Object </a>
280
-
281
-
282
-
283
- </span>
284
-
285
-
286
-
287
-
288
-
289
-
290
-
291
-
292
-
293
- <span class="summary_desc"><div class='inline'>
294
- <p>Issues the request that was made to fetch this response again.</p>
295
- </div></span>
296
-
297
- </li>
298
-
299
-
300
- </ul>
301
-
302
-
303
- <div id="constructor_details" class="method_details_list">
304
- <h2>Constructor Details</h2>
305
-
306
- <div class="method_details first">
307
- <h3 class="signature first" id="initialize-instance_method">
308
-
309
- #<strong>initialize</strong>(item, configuration = {}, _localized = false, _includes = [], depth = 0) &#x21d2; <tt><span class='object_link'><a href="" title="Contentful::BaseResource (class)">BaseResource</a></span></tt>
310
-
311
-
312
-
313
-
314
-
315
- </h3><div class="docstring">
316
- <div class="discussion">
317
-
318
- <p>Returns a new instance of BaseResource</p>
319
-
320
-
321
- </div>
322
- </div>
323
- <div class="tags">
324
-
325
-
326
- </div><table class="source_code">
327
- <tr>
328
- <td>
329
- <pre class="lines">
330
-
331
-
332
- 8
333
- 9
334
- 10
335
- 11
336
- 12
337
- 13
338
- 14
339
- 15
340
- 16</pre>
341
- </td>
342
- <td>
343
- <pre class="code"><span class="info file"># File 'lib/contentful/base_resource.rb', line 8</span>
344
-
345
- <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_item'>item</span><span class='comma'>,</span> <span class='id identifier rubyid_configuration'>configuration</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='id identifier rubyid__localized'>_localized</span> <span class='op'>=</span> <span class='kw'>false</span><span class='comma'>,</span> <span class='id identifier rubyid__includes'>_includes</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_depth'>depth</span> <span class='op'>=</span> <span class='int'>0</span><span class='rparen'>)</span>
346
- <span class='ivar'>@raw</span> <span class='op'>=</span> <span class='id identifier rubyid_item'>item</span>
347
- <span class='ivar'>@default_locale</span> <span class='op'>=</span> <span class='id identifier rubyid_configuration'>configuration</span><span class='lbracket'>[</span><span class='symbol'>:default_locale</span><span class='rbracket'>]</span>
348
- <span class='ivar'>@depth</span> <span class='op'>=</span> <span class='id identifier rubyid_depth'>depth</span>
349
- <span class='ivar'>@sys</span> <span class='op'>=</span> <span class='id identifier rubyid_hydrate_sys'>hydrate_sys</span>
350
- <span class='ivar'>@configuration</span> <span class='op'>=</span> <span class='id identifier rubyid_configuration'>configuration</span>
351
-
352
- <span class='id identifier rubyid_define_sys_methods!'>define_sys_methods!</span>
353
- <span class='kw'>end</span></pre>
354
- </td>
355
- </tr>
356
- </table>
357
- </div>
358
-
359
- </div>
360
-
361
- <div id="instance_attr_details" class="attr_details">
362
- <h2>Instance Attribute Details</h2>
363
-
364
-
365
- <span id=""></span>
366
- <div class="method_details first">
367
- <h3 class="signature first" id="default_locale-instance_method">
368
-
369
- #<strong>default_locale</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
370
-
371
-
372
-
373
-
374
-
375
- </h3><div class="docstring">
376
- <div class="discussion">
377
-
378
- <p>Returns the value of attribute default_locale</p>
379
-
380
-
381
- </div>
382
- </div>
383
- <div class="tags">
384
-
385
-
386
- </div><table class="source_code">
387
- <tr>
388
- <td>
389
- <pre class="lines">
390
-
391
-
392
- 6
393
- 7
394
- 8</pre>
395
- </td>
396
- <td>
397
- <pre class="code"><span class="info file"># File 'lib/contentful/base_resource.rb', line 6</span>
398
-
399
- <span class='kw'>def</span> <span class='id identifier rubyid_default_locale'>default_locale</span>
400
- <span class='ivar'>@default_locale</span>
401
- <span class='kw'>end</span></pre>
402
- </td>
403
- </tr>
404
- </table>
405
- </div>
406
-
407
-
408
- <span id=""></span>
409
- <div class="method_details ">
410
- <h3 class="signature " id="raw-instance_method">
411
-
412
- #<strong>raw</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
413
-
414
-
415
-
416
-
417
-
418
- </h3><div class="docstring">
419
- <div class="discussion">
420
-
421
- <p>Returns the value of attribute raw</p>
422
-
423
-
424
- </div>
425
- </div>
426
- <div class="tags">
427
-
428
-
429
- </div><table class="source_code">
430
- <tr>
431
- <td>
432
- <pre class="lines">
433
-
434
-
435
- 6
436
- 7
437
- 8</pre>
438
- </td>
439
- <td>
440
- <pre class="code"><span class="info file"># File 'lib/contentful/base_resource.rb', line 6</span>
441
-
442
- <span class='kw'>def</span> <span class='id identifier rubyid_raw'>raw</span>
443
- <span class='ivar'>@raw</span>
444
- <span class='kw'>end</span></pre>
445
- </td>
446
- </tr>
447
- </table>
448
- </div>
449
-
450
-
451
- <span id=""></span>
452
- <div class="method_details ">
453
- <h3 class="signature " id="sys-instance_method">
454
-
455
- #<strong>sys</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
456
-
457
-
458
-
459
-
460
-
461
- </h3><div class="docstring">
462
- <div class="discussion">
463
-
464
- <p>Returns the value of attribute sys</p>
465
-
466
-
467
- </div>
468
- </div>
469
- <div class="tags">
470
-
471
-
472
- </div><table class="source_code">
473
- <tr>
474
- <td>
475
- <pre class="lines">
476
-
477
-
478
- 6
479
- 7
480
- 8</pre>
481
- </td>
482
- <td>
483
- <pre class="code"><span class="info file"># File 'lib/contentful/base_resource.rb', line 6</span>
484
-
485
- <span class='kw'>def</span> <span class='id identifier rubyid_sys'>sys</span>
486
- <span class='ivar'>@sys</span>
487
- <span class='kw'>end</span></pre>
488
- </td>
489
- </tr>
490
- </table>
491
- </div>
492
-
493
- </div>
494
-
495
-
496
- <div id="instance_method_details" class="method_details_list">
497
- <h2>Instance Method Details</h2>
498
-
499
-
500
- <div class="method_details first">
501
- <h3 class="signature first" id="==-instance_method">
502
-
503
- #<strong>==</strong>(other) &#x21d2; <tt>Object</tt>
504
-
505
-
506
-
507
-
508
-
509
- </h3><div class="docstring">
510
- <div class="discussion">
511
-
512
- <p>Definition of equality</p>
513
-
514
-
515
- </div>
516
- </div>
517
- <div class="tags">
518
-
519
-
520
- </div><table class="source_code">
521
- <tr>
522
- <td>
523
- <pre class="lines">
524
-
525
-
526
- 24
527
- 25
528
- 26</pre>
529
- </td>
530
- <td>
531
- <pre class="code"><span class="info file"># File 'lib/contentful/base_resource.rb', line 24</span>
532
-
533
- <span class='kw'>def</span> <span class='op'>==</span><span class='lparen'>(</span><span class='id identifier rubyid_other'>other</span><span class='rparen'>)</span>
534
- <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span> <span class='op'>==</span> <span class='id identifier rubyid_other'>other</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_sys'>sys</span><span class='lbracket'>[</span><span class='symbol'>:id</span><span class='rbracket'>]</span> <span class='op'>==</span> <span class='id identifier rubyid_other'>other</span><span class='period'>.</span><span class='id identifier rubyid_sys'>sys</span><span class='lbracket'>[</span><span class='symbol'>:id</span><span class='rbracket'>]</span>
535
- <span class='kw'>end</span></pre>
536
- </td>
537
- </tr>
538
- </table>
539
- </div>
540
-
541
- <div class="method_details ">
542
- <h3 class="signature " id="reload-instance_method">
543
-
544
- #<strong>reload</strong>(client = nil) &#x21d2; <tt>Object</tt>
545
-
546
-
547
-
548
-
549
-
550
- </h3><div class="docstring">
551
- <div class="discussion">
552
-
553
- <p>Issues the request that was made to fetch this response again. Only works
554
- for Entry, Asset, ContentType and Space</p>
555
-
556
-
557
- </div>
558
- </div>
559
- <div class="tags">
560
-
561
-
562
- </div><table class="source_code">
563
- <tr>
564
- <td>
565
- <pre class="lines">
566
-
567
-
568
- 48
569
- 49
570
- 50
571
- 51
572
- 52</pre>
573
- </td>
574
- <td>
575
- <pre class="code"><span class="info file"># File 'lib/contentful/base_resource.rb', line 48</span>
576
-
577
- <span class='kw'>def</span> <span class='id identifier rubyid_reload'>reload</span><span class='lparen'>(</span><span class='id identifier rubyid_client'>client</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
578
- <span class='kw'>return</span> <span class='id identifier rubyid_client'>client</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='const'>Support</span><span class='period'>.</span><span class='id identifier rubyid_snakify'>snakify</span><span class='lparen'>(</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='period'>.</span><span class='id identifier rubyid_split'>split</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>::</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_last'>last</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='id identifier rubyid_id'>id</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='id identifier rubyid_client'>client</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
579
-
580
- <span class='kw'>false</span>
581
- <span class='kw'>end</span></pre>
582
- </td>
583
- </tr>
584
- </table>
585
- </div>
586
-
587
- </div>
588
-
589
- </div>
590
-
591
- <div id="footer">
592
- Generated on Tue Jul 25 15:15:33 2017 by
593
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
594
- 0.9.5 (ruby-2.4.1).
595
- </div>
596
-
597
- </div>
598
- </body>
599
- </html>