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,889 +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::Request
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::Request";
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 (R)</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">Request</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::Request
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::Request</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/request.rb</dd>
100
- </dl>
101
-
102
- </div>
103
-
104
- <h2>Overview</h2><div class="docstring">
105
- <div class="discussion">
106
-
107
- <p>This object represents a request that is to be made. It gets initialized by
108
- the client with domain specific logic. The client later uses the
109
- Request&#39;s #url and #query methods to execute the HTTP request.</p>
110
-
111
-
112
- </div>
113
- </div>
114
- <div class="tags">
115
-
116
-
117
- </div>
118
-
119
-
120
-
121
- <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
122
- <ul class="summary">
123
-
124
- <li class="public ">
125
- <span class="summary_signature">
126
-
127
- <a href="#client-instance_method" title="#client (instance method)">#<strong>client</strong> &#x21d2; Object </a>
128
-
129
-
130
-
131
- </span>
132
-
133
-
134
-
135
-
136
- <span class="note title readonly">readonly</span>
137
-
138
-
139
-
140
-
141
-
142
-
143
-
144
-
145
-
146
- <span class="summary_desc"><div class='inline'>
147
- <p>Returns the value of attribute client.</p>
148
- </div></span>
149
-
150
- </li>
151
-
152
-
153
- <li class="public ">
154
- <span class="summary_signature">
155
-
156
- <a href="#endpoint-instance_method" title="#endpoint (instance method)">#<strong>endpoint</strong> &#x21d2; Object </a>
157
-
158
-
159
-
160
- </span>
161
-
162
-
163
-
164
-
165
- <span class="note title readonly">readonly</span>
166
-
167
-
168
-
169
-
170
-
171
-
172
-
173
-
174
-
175
- <span class="summary_desc"><div class='inline'>
176
- <p>Returns the value of attribute endpoint.</p>
177
- </div></span>
178
-
179
- </li>
180
-
181
-
182
- <li class="public ">
183
- <span class="summary_signature">
184
-
185
- <a href="#id-instance_method" title="#id (instance method)">#<strong>id</strong> &#x21d2; Object </a>
186
-
187
-
188
-
189
- </span>
190
-
191
-
192
-
193
-
194
- <span class="note title readonly">readonly</span>
195
-
196
-
197
-
198
-
199
-
200
-
201
-
202
-
203
-
204
- <span class="summary_desc"><div class='inline'>
205
- <p>Returns the value of attribute id.</p>
206
- </div></span>
207
-
208
- </li>
209
-
210
-
211
- <li class="public ">
212
- <span class="summary_signature">
213
-
214
- <a href="#query-instance_method" title="#query (instance method)">#<strong>query</strong> &#x21d2; Object </a>
215
-
216
-
217
-
218
- </span>
219
-
220
-
221
-
222
-
223
- <span class="note title readonly">readonly</span>
224
-
225
-
226
-
227
-
228
-
229
-
230
-
231
-
232
-
233
- <span class="summary_desc"><div class='inline'>
234
- <p>Returns the value of attribute query.</p>
235
- </div></span>
236
-
237
- </li>
238
-
239
-
240
- <li class="public ">
241
- <span class="summary_signature">
242
-
243
- <a href="#type-instance_method" title="#type (instance method)">#<strong>type</strong> &#x21d2; Object </a>
244
-
245
-
246
-
247
- </span>
248
-
249
-
250
-
251
-
252
- <span class="note title readonly">readonly</span>
253
-
254
-
255
-
256
-
257
-
258
-
259
-
260
-
261
-
262
- <span class="summary_desc"><div class='inline'>
263
- <p>Returns the value of attribute type.</p>
264
- </div></span>
265
-
266
- </li>
267
-
268
-
269
- </ul>
270
-
271
-
272
-
273
-
274
-
275
- <h2>
276
- Instance Method Summary
277
- <small><a href="#" class="summary_toggle">collapse</a></small>
278
- </h2>
279
-
280
- <ul class="summary">
281
-
282
- <li class="public ">
283
- <span class="summary_signature">
284
-
285
- <a href="#absolute%3F-instance_method" title="#absolute? (instance method)">#<strong>absolute?</strong> &#x21d2; Boolean </a>
286
-
287
-
288
-
289
- </span>
290
-
291
-
292
-
293
-
294
-
295
-
296
-
297
-
298
-
299
- <span class="summary_desc"><div class='inline'>
300
- <p>Returns true if endpoint is an absolute url.</p>
301
- </div></span>
302
-
303
- </li>
304
-
305
-
306
- <li class="public ">
307
- <span class="summary_signature">
308
-
309
- <a href="#copy-instance_method" title="#copy (instance method)">#<strong>copy</strong> &#x21d2; Object </a>
310
-
311
-
312
-
313
- </span>
314
-
315
-
316
-
317
-
318
-
319
-
320
-
321
-
322
-
323
- <span class="summary_desc"><div class='inline'>
324
- <p>Returns a new Request object with the same data.</p>
325
- </div></span>
326
-
327
- </li>
328
-
329
-
330
- <li class="public ">
331
- <span class="summary_signature">
332
-
333
- <a href="#get-instance_method" title="#get (instance method)">#<strong>get</strong> &#x21d2; Object </a>
334
-
335
-
336
-
337
- </span>
338
-
339
-
340
-
341
-
342
-
343
-
344
-
345
-
346
-
347
- <span class="summary_desc"><div class='inline'>
348
- <p>Delegates the actual HTTP work to the client.</p>
349
- </div></span>
350
-
351
- </li>
352
-
353
-
354
- <li class="public ">
355
- <span class="summary_signature">
356
-
357
- <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(client, endpoint, query = {}, id = nil) &#x21d2; Request </a>
358
-
359
-
360
-
361
- </span>
362
-
363
-
364
- <span class="note title constructor">constructor</span>
365
-
366
-
367
-
368
-
369
-
370
-
371
-
372
-
373
- <span class="summary_desc"><div class='inline'>
374
- <p>A new instance of Request.</p>
375
- </div></span>
376
-
377
- </li>
378
-
379
-
380
- <li class="public ">
381
- <span class="summary_signature">
382
-
383
- <a href="#url-instance_method" title="#url (instance method)">#<strong>url</strong> &#x21d2; Object </a>
384
-
385
-
386
-
387
- </span>
388
-
389
-
390
-
391
-
392
-
393
-
394
-
395
-
396
-
397
- <span class="summary_desc"><div class='inline'>
398
- <p>Returns the final URL, relative to a contentful space.</p>
399
- </div></span>
400
-
401
- </li>
402
-
403
-
404
- </ul>
405
-
406
-
407
- <div id="constructor_details" class="method_details_list">
408
- <h2>Constructor Details</h2>
409
-
410
- <div class="method_details first">
411
- <h3 class="signature first" id="initialize-instance_method">
412
-
413
- #<strong>initialize</strong>(client, endpoint, query = {}, id = nil) &#x21d2; <tt><span class='object_link'><a href="" title="Contentful::Request (class)">Request</a></span></tt>
414
-
415
-
416
-
417
-
418
-
419
- </h3><div class="docstring">
420
- <div class="discussion">
421
-
422
- <p>Returns a new instance of Request</p>
423
-
424
-
425
- </div>
426
- </div>
427
- <div class="tags">
428
-
429
-
430
- </div><table class="source_code">
431
- <tr>
432
- <td>
433
- <pre class="lines">
434
-
435
-
436
- 8
437
- 9
438
- 10
439
- 11
440
- 12
441
- 13
442
- 14
443
- 15
444
- 16
445
- 17
446
- 18
447
- 19
448
- 20
449
- 21</pre>
450
- </td>
451
- <td>
452
- <pre class="code"><span class="info file"># File 'lib/contentful/request.rb', line 8</span>
453
-
454
- <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_client'>client</span><span class='comma'>,</span> <span class='id identifier rubyid_endpoint'>endpoint</span><span class='comma'>,</span> <span class='id identifier rubyid_query'>query</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='id identifier rubyid_id'>id</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
455
- <span class='ivar'>@client</span> <span class='op'>=</span> <span class='id identifier rubyid_client'>client</span>
456
- <span class='ivar'>@endpoint</span> <span class='op'>=</span> <span class='id identifier rubyid_endpoint'>endpoint</span>
457
-
458
- <span class='ivar'>@query</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='id identifier rubyid_normalize_query'>normalize_query</span><span class='lparen'>(</span><span class='id identifier rubyid_query'>query</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_query'>query</span> <span class='op'>&amp;&amp;</span> <span class='op'>!</span><span class='id identifier rubyid_query'>query</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span><span class='rparen'>)</span>
459
-
460
- <span class='kw'>if</span> <span class='id identifier rubyid_id'>id</span>
461
- <span class='ivar'>@type</span> <span class='op'>=</span> <span class='symbol'>:single</span>
462
- <span class='ivar'>@id</span> <span class='op'>=</span> <span class='const'>URI</span><span class='period'>.</span><span class='id identifier rubyid_escape'>escape</span><span class='lparen'>(</span><span class='id identifier rubyid_id'>id</span><span class='rparen'>)</span>
463
- <span class='kw'>else</span>
464
- <span class='ivar'>@type</span> <span class='op'>=</span> <span class='symbol'>:multi</span>
465
- <span class='ivar'>@id</span> <span class='op'>=</span> <span class='kw'>nil</span>
466
- <span class='kw'>end</span>
467
- <span class='kw'>end</span></pre>
468
- </td>
469
- </tr>
470
- </table>
471
- </div>
472
-
473
- </div>
474
-
475
- <div id="instance_attr_details" class="attr_details">
476
- <h2>Instance Attribute Details</h2>
477
-
478
-
479
- <span id=""></span>
480
- <div class="method_details first">
481
- <h3 class="signature first" id="client-instance_method">
482
-
483
- #<strong>client</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
484
-
485
-
486
-
487
-
488
-
489
- </h3><div class="docstring">
490
- <div class="discussion">
491
-
492
- <p>Returns the value of attribute client</p>
493
-
494
-
495
- </div>
496
- </div>
497
- <div class="tags">
498
-
499
-
500
- </div><table class="source_code">
501
- <tr>
502
- <td>
503
- <pre class="lines">
504
-
505
-
506
- 6
507
- 7
508
- 8</pre>
509
- </td>
510
- <td>
511
- <pre class="code"><span class="info file"># File 'lib/contentful/request.rb', line 6</span>
512
-
513
- <span class='kw'>def</span> <span class='id identifier rubyid_client'>client</span>
514
- <span class='ivar'>@client</span>
515
- <span class='kw'>end</span></pre>
516
- </td>
517
- </tr>
518
- </table>
519
- </div>
520
-
521
-
522
- <span id=""></span>
523
- <div class="method_details ">
524
- <h3 class="signature " id="endpoint-instance_method">
525
-
526
- #<strong>endpoint</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
527
-
528
-
529
-
530
-
531
-
532
- </h3><div class="docstring">
533
- <div class="discussion">
534
-
535
- <p>Returns the value of attribute endpoint</p>
536
-
537
-
538
- </div>
539
- </div>
540
- <div class="tags">
541
-
542
-
543
- </div><table class="source_code">
544
- <tr>
545
- <td>
546
- <pre class="lines">
547
-
548
-
549
- 6
550
- 7
551
- 8</pre>
552
- </td>
553
- <td>
554
- <pre class="code"><span class="info file"># File 'lib/contentful/request.rb', line 6</span>
555
-
556
- <span class='kw'>def</span> <span class='id identifier rubyid_endpoint'>endpoint</span>
557
- <span class='ivar'>@endpoint</span>
558
- <span class='kw'>end</span></pre>
559
- </td>
560
- </tr>
561
- </table>
562
- </div>
563
-
564
-
565
- <span id=""></span>
566
- <div class="method_details ">
567
- <h3 class="signature " id="id-instance_method">
568
-
569
- #<strong>id</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
570
-
571
-
572
-
573
-
574
-
575
- </h3><div class="docstring">
576
- <div class="discussion">
577
-
578
- <p>Returns the value of attribute id</p>
579
-
580
-
581
- </div>
582
- </div>
583
- <div class="tags">
584
-
585
-
586
- </div><table class="source_code">
587
- <tr>
588
- <td>
589
- <pre class="lines">
590
-
591
-
592
- 6
593
- 7
594
- 8</pre>
595
- </td>
596
- <td>
597
- <pre class="code"><span class="info file"># File 'lib/contentful/request.rb', line 6</span>
598
-
599
- <span class='kw'>def</span> <span class='id identifier rubyid_id'>id</span>
600
- <span class='ivar'>@id</span>
601
- <span class='kw'>end</span></pre>
602
- </td>
603
- </tr>
604
- </table>
605
- </div>
606
-
607
-
608
- <span id=""></span>
609
- <div class="method_details ">
610
- <h3 class="signature " id="query-instance_method">
611
-
612
- #<strong>query</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
613
-
614
-
615
-
616
-
617
-
618
- </h3><div class="docstring">
619
- <div class="discussion">
620
-
621
- <p>Returns the value of attribute query</p>
622
-
623
-
624
- </div>
625
- </div>
626
- <div class="tags">
627
-
628
-
629
- </div><table class="source_code">
630
- <tr>
631
- <td>
632
- <pre class="lines">
633
-
634
-
635
- 6
636
- 7
637
- 8</pre>
638
- </td>
639
- <td>
640
- <pre class="code"><span class="info file"># File 'lib/contentful/request.rb', line 6</span>
641
-
642
- <span class='kw'>def</span> <span class='id identifier rubyid_query'>query</span>
643
- <span class='ivar'>@query</span>
644
- <span class='kw'>end</span></pre>
645
- </td>
646
- </tr>
647
- </table>
648
- </div>
649
-
650
-
651
- <span id=""></span>
652
- <div class="method_details ">
653
- <h3 class="signature " id="type-instance_method">
654
-
655
- #<strong>type</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
656
-
657
-
658
-
659
-
660
-
661
- </h3><div class="docstring">
662
- <div class="discussion">
663
-
664
- <p>Returns the value of attribute type</p>
665
-
666
-
667
- </div>
668
- </div>
669
- <div class="tags">
670
-
671
-
672
- </div><table class="source_code">
673
- <tr>
674
- <td>
675
- <pre class="lines">
676
-
677
-
678
- 6
679
- 7
680
- 8</pre>
681
- </td>
682
- <td>
683
- <pre class="code"><span class="info file"># File 'lib/contentful/request.rb', line 6</span>
684
-
685
- <span class='kw'>def</span> <span class='id identifier rubyid_type'>type</span>
686
- <span class='ivar'>@type</span>
687
- <span class='kw'>end</span></pre>
688
- </td>
689
- </tr>
690
- </table>
691
- </div>
692
-
693
- </div>
694
-
695
-
696
- <div id="instance_method_details" class="method_details_list">
697
- <h2>Instance Method Details</h2>
698
-
699
-
700
- <div class="method_details first">
701
- <h3 class="signature first" id="absolute?-instance_method">
702
-
703
- #<strong>absolute?</strong> &#x21d2; <tt>Boolean</tt>
704
-
705
-
706
-
707
-
708
-
709
- </h3><div class="docstring">
710
- <div class="discussion">
711
-
712
- <p>Returns true if endpoint is an absolute url</p>
713
-
714
-
715
- </div>
716
- </div>
717
- <div class="tags">
718
-
719
- <p class="tag_title">Returns:</p>
720
- <ul class="return">
721
-
722
- <li>
723
-
724
-
725
- <span class='type'>(<tt>Boolean</tt>)</span>
726
-
727
-
728
-
729
- </li>
730
-
731
- </ul>
732
-
733
- </div><table class="source_code">
734
- <tr>
735
- <td>
736
- <pre class="lines">
737
-
738
-
739
- 34
740
- 35
741
- 36</pre>
742
- </td>
743
- <td>
744
- <pre class="code"><span class="info file"># File 'lib/contentful/request.rb', line 34</span>
745
-
746
- <span class='kw'>def</span> <span class='id identifier rubyid_absolute?'>absolute?</span>
747
- <span class='ivar'>@endpoint</span><span class='period'>.</span><span class='id identifier rubyid_start_with?'>start_with?</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>http</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
748
- <span class='kw'>end</span></pre>
749
- </td>
750
- </tr>
751
- </table>
752
- </div>
753
-
754
- <div class="method_details ">
755
- <h3 class="signature " id="copy-instance_method">
756
-
757
- #<strong>copy</strong> &#x21d2; <tt>Object</tt>
758
-
759
-
760
-
761
-
762
-
763
- </h3><div class="docstring">
764
- <div class="discussion">
765
-
766
- <p>Returns a new Request object with the same data</p>
767
-
768
-
769
- </div>
770
- </div>
771
- <div class="tags">
772
-
773
-
774
- </div><table class="source_code">
775
- <tr>
776
- <td>
777
- <pre class="lines">
778
-
779
-
780
- 39
781
- 40
782
- 41</pre>
783
- </td>
784
- <td>
785
- <pre class="code"><span class="info file"># File 'lib/contentful/request.rb', line 39</span>
786
-
787
- <span class='kw'>def</span> <span class='id identifier rubyid_copy'>copy</span>
788
- <span class='const'>Marshal</span><span class='period'>.</span><span class='id identifier rubyid_load'>load</span><span class='lparen'>(</span><span class='const'>Marshal</span><span class='period'>.</span><span class='id identifier rubyid_dump'>dump</span><span class='lparen'>(</span><span class='kw'>self</span><span class='rparen'>)</span><span class='rparen'>)</span>
789
- <span class='kw'>end</span></pre>
790
- </td>
791
- </tr>
792
- </table>
793
- </div>
794
-
795
- <div class="method_details ">
796
- <h3 class="signature " id="get-instance_method">
797
-
798
- #<strong>get</strong> &#x21d2; <tt>Object</tt>
799
-
800
-
801
-
802
-
803
-
804
- </h3><div class="docstring">
805
- <div class="discussion">
806
-
807
- <p>Delegates the actual HTTP work to the client</p>
808
-
809
-
810
- </div>
811
- </div>
812
- <div class="tags">
813
-
814
-
815
- </div><table class="source_code">
816
- <tr>
817
- <td>
818
- <pre class="lines">
819
-
820
-
821
- 29
822
- 30
823
- 31</pre>
824
- </td>
825
- <td>
826
- <pre class="code"><span class="info file"># File 'lib/contentful/request.rb', line 29</span>
827
-
828
- <span class='kw'>def</span> <span class='id identifier rubyid_get'>get</span>
829
- <span class='id identifier rubyid_client'>client</span><span class='period'>.</span><span class='id identifier rubyid_get'>get</span><span class='lparen'>(</span><span class='kw'>self</span><span class='rparen'>)</span>
830
- <span class='kw'>end</span></pre>
831
- </td>
832
- </tr>
833
- </table>
834
- </div>
835
-
836
- <div class="method_details ">
837
- <h3 class="signature " id="url-instance_method">
838
-
839
- #<strong>url</strong> &#x21d2; <tt>Object</tt>
840
-
841
-
842
-
843
-
844
-
845
- </h3><div class="docstring">
846
- <div class="discussion">
847
-
848
- <p>Returns the final URL, relative to a contentful space</p>
849
-
850
-
851
- </div>
852
- </div>
853
- <div class="tags">
854
-
855
-
856
- </div><table class="source_code">
857
- <tr>
858
- <td>
859
- <pre class="lines">
860
-
861
-
862
- 24
863
- 25
864
- 26</pre>
865
- </td>
866
- <td>
867
- <pre class="code"><span class="info file"># File 'lib/contentful/request.rb', line 24</span>
868
-
869
- <span class='kw'>def</span> <span class='id identifier rubyid_url'>url</span>
870
- <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='ivar'>@endpoint</span><span class='embexpr_end'>}</span><span class='embexpr_beg'>#{</span><span class='ivar'>@type</span> <span class='op'>==</span> <span class='symbol'>:single</span> <span class='op'>?</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_id'>id</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span> <span class='op'>:</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_end'>&#39;</span></span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
871
- <span class='kw'>end</span></pre>
872
- </td>
873
- </tr>
874
- </table>
875
- </div>
876
-
877
- </div>
878
-
879
- </div>
880
-
881
- <div id="footer">
882
- Generated on Tue Jul 25 15:15:33 2017 by
883
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
884
- 0.9.5 (ruby-2.4.1).
885
- </div>
886
-
887
- </div>
888
- </body>
889
- </html>