prismic.io 1.4.1 → 1.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (107) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +1 -1
  3. data/Gemfile.lock +1 -1
  4. data/README.md +6 -14
  5. data/docs/Prismic.html +1074 -0
  6. data/docs/Prismic/API.html +2987 -0
  7. data/docs/Prismic/API/BadPrismicResponseError.html +147 -0
  8. data/docs/Prismic/API/OAuth.html +560 -0
  9. data/docs/Prismic/API/PrismicWSAuthError.html +375 -0
  10. data/docs/Prismic/API/PrismicWSConnectionError.html +221 -0
  11. data/docs/Prismic/BasicNullCache.html +255 -0
  12. data/docs/Prismic/DefaultHTTPClient.html +350 -0
  13. data/docs/Prismic/Document.html +873 -0
  14. data/docs/Prismic/Error.html +418 -0
  15. data/docs/Prismic/Experiment.html +633 -0
  16. data/docs/Prismic/Experiments.html +633 -0
  17. data/docs/Prismic/Field.html +424 -0
  18. data/docs/Prismic/Form.html +827 -0
  19. data/docs/Prismic/Fragments.html +117 -0
  20. data/docs/Prismic/Fragments/Color.html +632 -0
  21. data/docs/Prismic/Fragments/Date.html +399 -0
  22. data/docs/Prismic/Fragments/DocumentLink.html +1048 -0
  23. data/docs/Prismic/Fragments/Embed.html +679 -0
  24. data/docs/Prismic/Fragments/FileLink.html +604 -0
  25. data/docs/Prismic/Fragments/Fragment.html +339 -0
  26. data/docs/Prismic/Fragments/GeoPoint.html +469 -0
  27. data/docs/Prismic/Fragments/Group.html +710 -0
  28. data/docs/Prismic/Fragments/GroupDocument.html +382 -0
  29. data/docs/Prismic/Fragments/Image.html +780 -0
  30. data/docs/Prismic/Fragments/Image/View.html +759 -0
  31. data/docs/Prismic/Fragments/Image/ViewDoesNotExistException.html +147 -0
  32. data/docs/Prismic/Fragments/ImageLink.html +336 -0
  33. data/docs/Prismic/Fragments/Link.html +412 -0
  34. data/docs/Prismic/Fragments/Multiple.html +513 -0
  35. data/docs/Prismic/Fragments/Number.html +401 -0
  36. data/docs/Prismic/Fragments/Select.html +349 -0
  37. data/docs/Prismic/Fragments/Separator.html +396 -0
  38. data/docs/Prismic/Fragments/Slice.html +632 -0
  39. data/docs/Prismic/Fragments/SliceZone.html +474 -0
  40. data/docs/Prismic/Fragments/StructuredText.html +664 -0
  41. data/docs/Prismic/Fragments/StructuredText/Block.html +232 -0
  42. data/docs/Prismic/Fragments/StructuredText/Block/Embed.html +367 -0
  43. data/docs/Prismic/Fragments/StructuredText/Block/Heading.html +366 -0
  44. data/docs/Prismic/Fragments/StructuredText/Block/Image.html +755 -0
  45. data/docs/Prismic/Fragments/StructuredText/Block/ListItem.html +372 -0
  46. data/docs/Prismic/Fragments/StructuredText/Block/Paragraph.html +223 -0
  47. data/docs/Prismic/Fragments/StructuredText/Block/Preformatted.html +223 -0
  48. data/docs/Prismic/Fragments/StructuredText/Block/Text.html +818 -0
  49. data/docs/Prismic/Fragments/StructuredText/BlockGroup.html +423 -0
  50. data/docs/Prismic/Fragments/StructuredText/Span.html +384 -0
  51. data/docs/Prismic/Fragments/StructuredText/Span/Em.html +213 -0
  52. data/docs/Prismic/Fragments/StructuredText/Span/Hyperlink.html +359 -0
  53. data/docs/Prismic/Fragments/StructuredText/Span/Label.html +362 -0
  54. data/docs/Prismic/Fragments/StructuredText/Span/Strong.html +213 -0
  55. data/docs/Prismic/Fragments/Text.html +396 -0
  56. data/docs/Prismic/Fragments/Timestamp.html +399 -0
  57. data/docs/Prismic/Fragments/WebLink.html +340 -0
  58. data/docs/Prismic/HtmlSerializer.html +270 -0
  59. data/docs/Prismic/JsonParser.html +1764 -0
  60. data/docs/Prismic/LinkResolver.html +399 -0
  61. data/docs/Prismic/LruCache.html +1140 -0
  62. data/docs/Prismic/Predicates.html +1630 -0
  63. data/docs/Prismic/Ref.html +643 -0
  64. data/docs/Prismic/Response.html +1159 -0
  65. data/docs/Prismic/SearchForm.html +2172 -0
  66. data/docs/Prismic/SearchForm/AuthenticationException.html +147 -0
  67. data/docs/Prismic/SearchForm/AuthorizationException.html +147 -0
  68. data/docs/Prismic/SearchForm/FormSearchException.html +147 -0
  69. data/docs/Prismic/SearchForm/NoRefSetException.html +147 -0
  70. data/docs/Prismic/SearchForm/RefNotFoundException.html +147 -0
  71. data/docs/Prismic/SearchForm/UnsupportedFormKind.html +147 -0
  72. data/docs/Prismic/Variation.html +546 -0
  73. data/docs/Prismic/WithFragments.html +1803 -0
  74. data/docs/_index.html +752 -0
  75. data/docs/class_list.html +54 -0
  76. data/docs/css/common.css +1 -0
  77. data/docs/css/full_list.css +57 -0
  78. data/docs/css/style.css +339 -0
  79. data/docs/file.README.html +180 -0
  80. data/docs/file_list.html +56 -0
  81. data/docs/frames.html +26 -0
  82. data/docs/index.html +180 -0
  83. data/docs/js/app.js +219 -0
  84. data/docs/js/full_list.js +178 -0
  85. data/docs/js/jquery.js +4 -0
  86. data/docs/method_list.html +2381 -0
  87. data/docs/top-level-namespace.html +112 -0
  88. data/lib/prismic.rb +17 -1
  89. data/lib/prismic/api.rb +31 -19
  90. data/lib/prismic/fragments/image.rb +6 -0
  91. data/lib/prismic/json_parsers.rb +2 -0
  92. data/lib/prismic/version.rb +1 -1
  93. data/spec/cache_spec.rb +12 -12
  94. data/spec/json_parsers_spec.rb +10 -5
  95. data/spec/oauth_spec.rb +3 -3
  96. data/spec/prismic_spec.rb +7 -7
  97. data/spec/responses_mocks/api.json +12 -12
  98. data/spec/responses_mocks/document.json +4 -2
  99. data/spec/responses_mocks/document_with_unknown_fragment.json +2 -0
  100. data/spec/responses_mocks/fragments.json +5 -3
  101. data/spec/responses_mocks/slices.json +2 -0
  102. data/spec/responses_mocks/structured_text_with_labels.json +2 -2
  103. data/spec/simple_search_spec.rb +55 -0
  104. metadata +103 -24
  105. data/deploy-doc.sh +0 -9
  106. data/spec/doc_spec.rb +0 -298
  107. data/spec/lesbonneschoses_spec.rb +0 -228
@@ -0,0 +1,1159 @@
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: Prismic::Response
8
+
9
+ &mdash; Documentation by YARD 0.8.7.4
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#!Prismic/Response.html";
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 (R)</a> &raquo;
35
+ <span class='title'><span class='object_link'><a href="../Prismic.html" title="Prismic (module)">Prismic</a></span></span>
36
+ &raquo;
37
+ <span class="title">Response</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: Prismic::Response
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">Prismic::Response</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">Enumerable</dd>
95
+
96
+
97
+
98
+
99
+
100
+ <dt class="r1 last">Defined in:</dt>
101
+ <dd class="r1 last">lib/prismic.rb</dd>
102
+
103
+ </dl>
104
+ <div class="clear"></div>
105
+
106
+ <h2>Overview</h2><div class="docstring">
107
+ <div class="discussion">
108
+ <p>Paginated response to a Prismic.io query. Note that you may not get all documents in the first page,
109
+ and may need to retrieve more pages or increase the page size.</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="#next_page-instance_method" title="#next_page (instance method)">- (String) <strong>next_page</strong> </a>
128
+
129
+
130
+
131
+ </span>
132
+
133
+
134
+
135
+
136
+
137
+
138
+
139
+
140
+
141
+
142
+
143
+
144
+ <span class="summary_desc"><div class='inline'><p>URL to the next page - nil if current page is the last page.</p>
145
+ </div></span>
146
+
147
+ </li>
148
+
149
+
150
+ <li class="public ">
151
+ <span class="summary_signature">
152
+
153
+ <a href="#page-instance_method" title="#page (instance method)">- (Number) <strong>page</strong> </a>
154
+
155
+
156
+
157
+ (also: #current_page)
158
+
159
+ </span>
160
+
161
+
162
+
163
+
164
+
165
+
166
+
167
+
168
+
169
+
170
+
171
+
172
+ <span class="summary_desc"><div class='inline'><p>Current page, starting at 1.</p>
173
+ </div></span>
174
+
175
+ </li>
176
+
177
+
178
+ <li class="public ">
179
+ <span class="summary_signature">
180
+
181
+ <a href="#prev_page-instance_method" title="#prev_page (instance method)">- (String) <strong>prev_page</strong> </a>
182
+
183
+
184
+
185
+ </span>
186
+
187
+
188
+
189
+
190
+
191
+
192
+
193
+
194
+
195
+
196
+
197
+
198
+ <span class="summary_desc"><div class='inline'><p>URL to the previous page - nil if current page is the first page.</p>
199
+ </div></span>
200
+
201
+ </li>
202
+
203
+
204
+ <li class="public ">
205
+ <span class="summary_signature">
206
+
207
+ <a href="#results-instance_method" title="#results (instance method)">- (Array&lt;Document&gt;) <strong>results</strong> </a>
208
+
209
+
210
+
211
+ </span>
212
+
213
+
214
+
215
+
216
+
217
+
218
+
219
+
220
+
221
+
222
+
223
+
224
+ <span class="summary_desc"><div class='inline'><p>Documents of the current page.</p>
225
+ </div></span>
226
+
227
+ </li>
228
+
229
+
230
+ <li class="public ">
231
+ <span class="summary_signature">
232
+
233
+ <a href="#results_per_page-instance_method" title="#results_per_page (instance method)">- (Number) <strong>results_per_page</strong> </a>
234
+
235
+
236
+
237
+ (also: #limit_value)
238
+
239
+ </span>
240
+
241
+
242
+
243
+
244
+
245
+
246
+
247
+
248
+
249
+
250
+
251
+
252
+ <span class="summary_desc"><div class='inline'></div></span>
253
+
254
+ </li>
255
+
256
+
257
+ <li class="public ">
258
+ <span class="summary_signature">
259
+
260
+ <a href="#results_size-instance_method" title="#results_size (instance method)">- (Number) <strong>results_size</strong> </a>
261
+
262
+
263
+
264
+ </span>
265
+
266
+
267
+
268
+
269
+
270
+
271
+
272
+
273
+
274
+
275
+
276
+
277
+ <span class="summary_desc"><div class='inline'></div></span>
278
+
279
+ </li>
280
+
281
+
282
+ <li class="public ">
283
+ <span class="summary_signature">
284
+
285
+ <a href="#total_pages-instance_method" title="#total_pages (instance method)">- (Number) <strong>total_pages</strong> </a>
286
+
287
+
288
+
289
+ </span>
290
+
291
+
292
+
293
+
294
+
295
+
296
+
297
+
298
+
299
+
300
+
301
+
302
+ <span class="summary_desc"><div class='inline'></div></span>
303
+
304
+ </li>
305
+
306
+
307
+ <li class="public ">
308
+ <span class="summary_signature">
309
+
310
+ <a href="#total_results_size-instance_method" title="#total_results_size (instance method)">- (Number) <strong>total_results_size</strong> </a>
311
+
312
+
313
+
314
+ </span>
315
+
316
+
317
+
318
+
319
+
320
+
321
+
322
+
323
+
324
+
325
+
326
+
327
+ <span class="summary_desc"><div class='inline'></div></span>
328
+
329
+ </li>
330
+
331
+
332
+ </ul>
333
+
334
+
335
+
336
+
337
+
338
+ <h2>
339
+ Instance Method Summary
340
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
341
+ </h2>
342
+
343
+ <ul class="summary">
344
+
345
+ <li class="public ">
346
+ <span class="summary_signature">
347
+
348
+ <a href="#%5B%5D-instance_method" title="#[] (instance method)">- (Document) <strong>[]</strong>(i) </a>
349
+
350
+
351
+
352
+ (also: #get)
353
+
354
+ </span>
355
+
356
+
357
+
358
+
359
+
360
+
361
+
362
+
363
+
364
+ <span class="summary_desc"><div class='inline'><p>Accessing the i-th document in the results.</p>
365
+ </div></span>
366
+
367
+ </li>
368
+
369
+
370
+ <li class="public ">
371
+ <span class="summary_signature">
372
+
373
+ <a href="#each-instance_method" title="#each (instance method)">- (Object) <strong>each</strong> {|document| ... }</a>
374
+
375
+
376
+
377
+ </span>
378
+
379
+
380
+
381
+
382
+
383
+
384
+
385
+
386
+
387
+ <span class="summary_desc"><div class='inline'><p>Iterates over received documents.</p>
388
+ </div></span>
389
+
390
+ </li>
391
+
392
+
393
+ <li class="public ">
394
+ <span class="summary_signature">
395
+
396
+ <a href="#initialize-instance_method" title="#initialize (instance method)">- (Response) <strong>initialize</strong>(page, results_per_page, results_size, total_results_size, total_pages, next_page, prev_page, results) </a>
397
+
398
+
399
+
400
+ </span>
401
+
402
+
403
+ <span class="note title constructor">constructor</span>
404
+
405
+
406
+
407
+
408
+
409
+
410
+
411
+
412
+ <span class="summary_desc"><div class='inline'><p>A new instance of Response.</p>
413
+ </div></span>
414
+
415
+ </li>
416
+
417
+
418
+ <li class="public ">
419
+ <span class="summary_signature">
420
+
421
+ <a href="#length-instance_method" title="#length (instance method)">- (Fixum) <strong>length</strong> </a>
422
+
423
+
424
+
425
+ (also: #size)
426
+
427
+ </span>
428
+
429
+
430
+
431
+
432
+
433
+
434
+
435
+
436
+
437
+ <span class="summary_desc"><div class='inline'><p>Return the number of returned documents.</p>
438
+ </div></span>
439
+
440
+ </li>
441
+
442
+
443
+ </ul>
444
+
445
+
446
+
447
+ <div id="constructor_details" class="method_details_list">
448
+ <h2>Constructor Details</h2>
449
+
450
+ <div class="method_details first">
451
+ <h3 class="signature first" id="initialize-instance_method">
452
+
453
+ - (<tt><span class='object_link'><a href="" title="Prismic::Response (class)">Response</a></span></tt>) <strong>initialize</strong>(page, results_per_page, results_size, total_results_size, total_pages, next_page, prev_page, results)
454
+
455
+
456
+
457
+
458
+
459
+ </h3><div class="docstring">
460
+ <div class="discussion">
461
+ <p>Returns a new instance of Response</p>
462
+
463
+
464
+ </div>
465
+ </div>
466
+ <div class="tags">
467
+
468
+
469
+ </div><table class="source_code">
470
+ <tr>
471
+ <td>
472
+ <pre class="lines">
473
+
474
+
475
+ 400
476
+ 401
477
+ 402
478
+ 403
479
+ 404
480
+ 405
481
+ 406
482
+ 407
483
+ 408
484
+ 409</pre>
485
+ </td>
486
+ <td>
487
+ <pre class="code"><span class="info file"># File 'lib/prismic.rb', line 400</span>
488
+
489
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_page'>page</span><span class='comma'>,</span> <span class='id identifier rubyid_results_per_page'>results_per_page</span><span class='comma'>,</span> <span class='id identifier rubyid_results_size'>results_size</span><span class='comma'>,</span> <span class='id identifier rubyid_total_results_size'>total_results_size</span><span class='comma'>,</span> <span class='id identifier rubyid_total_pages'>total_pages</span><span class='comma'>,</span> <span class='id identifier rubyid_next_page'>next_page</span><span class='comma'>,</span> <span class='id identifier rubyid_prev_page'>prev_page</span><span class='comma'>,</span> <span class='id identifier rubyid_results'>results</span><span class='rparen'>)</span>
490
+ <span class='ivar'>@page</span> <span class='op'>=</span> <span class='id identifier rubyid_page'>page</span>
491
+ <span class='ivar'>@results_per_page</span> <span class='op'>=</span> <span class='id identifier rubyid_results_per_page'>results_per_page</span>
492
+ <span class='ivar'>@results_size</span> <span class='op'>=</span> <span class='id identifier rubyid_results_size'>results_size</span>
493
+ <span class='ivar'>@total_results_size</span> <span class='op'>=</span> <span class='id identifier rubyid_total_results_size'>total_results_size</span>
494
+ <span class='ivar'>@total_pages</span> <span class='op'>=</span> <span class='id identifier rubyid_total_pages'>total_pages</span>
495
+ <span class='ivar'>@next_page</span> <span class='op'>=</span> <span class='id identifier rubyid_next_page'>next_page</span>
496
+ <span class='ivar'>@prev_page</span> <span class='op'>=</span> <span class='id identifier rubyid_prev_page'>prev_page</span>
497
+ <span class='ivar'>@results</span> <span class='op'>=</span> <span class='id identifier rubyid_results'>results</span>
498
+ <span class='kw'>end</span></pre>
499
+ </td>
500
+ </tr>
501
+ </table>
502
+ </div>
503
+
504
+ </div>
505
+
506
+ <div id="instance_attr_details" class="attr_details">
507
+ <h2>Instance Attribute Details</h2>
508
+
509
+
510
+ <span id="next_page=-instance_method"></span>
511
+ <div class="method_details first">
512
+ <h3 class="signature first" id="next_page-instance_method">
513
+
514
+ - (<tt>String</tt>) <strong>next_page</strong>
515
+
516
+
517
+
518
+
519
+
520
+ </h3><div class="docstring">
521
+ <div class="discussion">
522
+ <p>Returns URL to the next page - nil if current page is the last page</p>
523
+
524
+
525
+ </div>
526
+ </div>
527
+ <div class="tags">
528
+
529
+ <p class="tag_title">Returns:</p>
530
+ <ul class="return">
531
+
532
+ <li>
533
+
534
+
535
+ <span class='type'>(<tt>String</tt>)</span>
536
+
537
+
538
+
539
+ &mdash;
540
+ <div class='inline'><p>URL to the next page - nil if current page is the last page</p>
541
+ </div>
542
+
543
+ </li>
544
+
545
+ </ul>
546
+
547
+ </div><table class="source_code">
548
+ <tr>
549
+ <td>
550
+ <pre class="lines">
551
+
552
+
553
+ 390
554
+ 391
555
+ 392</pre>
556
+ </td>
557
+ <td>
558
+ <pre class="code"><span class="info file"># File 'lib/prismic.rb', line 390</span>
559
+
560
+ <span class='kw'>def</span> <span class='id identifier rubyid_next_page'>next_page</span>
561
+ <span class='ivar'>@next_page</span>
562
+ <span class='kw'>end</span></pre>
563
+ </td>
564
+ </tr>
565
+ </table>
566
+ </div>
567
+
568
+
569
+ <span id="page=-instance_method"></span>
570
+ <div class="method_details ">
571
+ <h3 class="signature " id="page-instance_method">
572
+
573
+ - (<tt>Number</tt>) <strong>page</strong>
574
+
575
+
576
+
577
+ <span class="aliases">Also known as:
578
+ <span class="names"><span id='current_page-instance_method'>current_page</span></span>
579
+ </span>
580
+
581
+
582
+
583
+ </h3><div class="docstring">
584
+ <div class="discussion">
585
+ <p>Returns current page, starting at 1</p>
586
+
587
+
588
+ </div>
589
+ </div>
590
+ <div class="tags">
591
+
592
+ <p class="tag_title">Returns:</p>
593
+ <ul class="return">
594
+
595
+ <li>
596
+
597
+
598
+ <span class='type'>(<tt>Number</tt>)</span>
599
+
600
+
601
+
602
+ &mdash;
603
+ <div class='inline'><p>current page, starting at 1</p>
604
+ </div>
605
+
606
+ </li>
607
+
608
+ </ul>
609
+
610
+ </div><table class="source_code">
611
+ <tr>
612
+ <td>
613
+ <pre class="lines">
614
+
615
+
616
+ 380
617
+ 381
618
+ 382</pre>
619
+ </td>
620
+ <td>
621
+ <pre class="code"><span class="info file"># File 'lib/prismic.rb', line 380</span>
622
+
623
+ <span class='kw'>def</span> <span class='id identifier rubyid_page'>page</span>
624
+ <span class='ivar'>@page</span>
625
+ <span class='kw'>end</span></pre>
626
+ </td>
627
+ </tr>
628
+ </table>
629
+ </div>
630
+
631
+
632
+ <span id="prev_page=-instance_method"></span>
633
+ <div class="method_details ">
634
+ <h3 class="signature " id="prev_page-instance_method">
635
+
636
+ - (<tt>String</tt>) <strong>prev_page</strong>
637
+
638
+
639
+
640
+
641
+
642
+ </h3><div class="docstring">
643
+ <div class="discussion">
644
+ <p>Returns URL to the previous page - nil if current page is the first page</p>
645
+
646
+
647
+ </div>
648
+ </div>
649
+ <div class="tags">
650
+
651
+ <p class="tag_title">Returns:</p>
652
+ <ul class="return">
653
+
654
+ <li>
655
+
656
+
657
+ <span class='type'>(<tt>String</tt>)</span>
658
+
659
+
660
+
661
+ &mdash;
662
+ <div class='inline'><p>URL to the previous page - nil if current page is the first page</p>
663
+ </div>
664
+
665
+ </li>
666
+
667
+ </ul>
668
+
669
+ </div><table class="source_code">
670
+ <tr>
671
+ <td>
672
+ <pre class="lines">
673
+
674
+
675
+ 392
676
+ 393
677
+ 394</pre>
678
+ </td>
679
+ <td>
680
+ <pre class="code"><span class="info file"># File 'lib/prismic.rb', line 392</span>
681
+
682
+ <span class='kw'>def</span> <span class='id identifier rubyid_prev_page'>prev_page</span>
683
+ <span class='ivar'>@prev_page</span>
684
+ <span class='kw'>end</span></pre>
685
+ </td>
686
+ </tr>
687
+ </table>
688
+ </div>
689
+
690
+
691
+ <span id="results=-instance_method"></span>
692
+ <div class="method_details ">
693
+ <h3 class="signature " id="results-instance_method">
694
+
695
+ - (<tt>Array&lt;<span class='object_link'><a href="Document.html" title="Prismic::Document (class)">Document</a></span>&gt;</tt>) <strong>results</strong>
696
+
697
+
698
+
699
+
700
+
701
+ </h3><div class="docstring">
702
+ <div class="discussion">
703
+ <p>Returns Documents of the current page</p>
704
+
705
+
706
+ </div>
707
+ </div>
708
+ <div class="tags">
709
+
710
+ <p class="tag_title">Returns:</p>
711
+ <ul class="return">
712
+
713
+ <li>
714
+
715
+
716
+ <span class='type'>(<tt>Array&lt;<span class='object_link'><a href="Document.html" title="Prismic::Document (class)">Document</a></span>&gt;</tt>)</span>
717
+
718
+
719
+
720
+ &mdash;
721
+ <div class='inline'><p>Documents of the current page</p>
722
+ </div>
723
+
724
+ </li>
725
+
726
+ </ul>
727
+
728
+ </div><table class="source_code">
729
+ <tr>
730
+ <td>
731
+ <pre class="lines">
732
+
733
+
734
+ 394
735
+ 395
736
+ 396</pre>
737
+ </td>
738
+ <td>
739
+ <pre class="code"><span class="info file"># File 'lib/prismic.rb', line 394</span>
740
+
741
+ <span class='kw'>def</span> <span class='id identifier rubyid_results'>results</span>
742
+ <span class='ivar'>@results</span>
743
+ <span class='kw'>end</span></pre>
744
+ </td>
745
+ </tr>
746
+ </table>
747
+ </div>
748
+
749
+
750
+ <span id="results_per_page=-instance_method"></span>
751
+ <div class="method_details ">
752
+ <h3 class="signature " id="results_per_page-instance_method">
753
+
754
+ - (<tt>Number</tt>) <strong>results_per_page</strong>
755
+
756
+
757
+
758
+ <span class="aliases">Also known as:
759
+ <span class="names"><span id='limit_value-instance_method'>limit_value</span></span>
760
+ </span>
761
+
762
+
763
+
764
+ </h3><div class="docstring">
765
+ <div class="discussion">
766
+
767
+
768
+ </div>
769
+ </div>
770
+ <div class="tags">
771
+
772
+ <p class="tag_title">Returns:</p>
773
+ <ul class="return">
774
+
775
+ <li>
776
+
777
+
778
+ <span class='type'>(<tt>Number</tt>)</span>
779
+
780
+
781
+
782
+ </li>
783
+
784
+ </ul>
785
+
786
+ </div><table class="source_code">
787
+ <tr>
788
+ <td>
789
+ <pre class="lines">
790
+
791
+
792
+ 382
793
+ 383
794
+ 384</pre>
795
+ </td>
796
+ <td>
797
+ <pre class="code"><span class="info file"># File 'lib/prismic.rb', line 382</span>
798
+
799
+ <span class='kw'>def</span> <span class='id identifier rubyid_results_per_page'>results_per_page</span>
800
+ <span class='ivar'>@results_per_page</span>
801
+ <span class='kw'>end</span></pre>
802
+ </td>
803
+ </tr>
804
+ </table>
805
+ </div>
806
+
807
+
808
+ <span id="results_size=-instance_method"></span>
809
+ <div class="method_details ">
810
+ <h3 class="signature " id="results_size-instance_method">
811
+
812
+ - (<tt>Number</tt>) <strong>results_size</strong>
813
+
814
+
815
+
816
+
817
+
818
+ </h3><div class="docstring">
819
+ <div class="discussion">
820
+
821
+
822
+ </div>
823
+ </div>
824
+ <div class="tags">
825
+
826
+ <p class="tag_title">Returns:</p>
827
+ <ul class="return">
828
+
829
+ <li>
830
+
831
+
832
+ <span class='type'>(<tt>Number</tt>)</span>
833
+
834
+
835
+
836
+ </li>
837
+
838
+ </ul>
839
+
840
+ </div><table class="source_code">
841
+ <tr>
842
+ <td>
843
+ <pre class="lines">
844
+
845
+
846
+ 384
847
+ 385
848
+ 386</pre>
849
+ </td>
850
+ <td>
851
+ <pre class="code"><span class="info file"># File 'lib/prismic.rb', line 384</span>
852
+
853
+ <span class='kw'>def</span> <span class='id identifier rubyid_results_size'>results_size</span>
854
+ <span class='ivar'>@results_size</span>
855
+ <span class='kw'>end</span></pre>
856
+ </td>
857
+ </tr>
858
+ </table>
859
+ </div>
860
+
861
+
862
+ <span id="total_pages=-instance_method"></span>
863
+ <div class="method_details ">
864
+ <h3 class="signature " id="total_pages-instance_method">
865
+
866
+ - (<tt>Number</tt>) <strong>total_pages</strong>
867
+
868
+
869
+
870
+
871
+
872
+ </h3><div class="docstring">
873
+ <div class="discussion">
874
+
875
+
876
+ </div>
877
+ </div>
878
+ <div class="tags">
879
+
880
+ <p class="tag_title">Returns:</p>
881
+ <ul class="return">
882
+
883
+ <li>
884
+
885
+
886
+ <span class='type'>(<tt>Number</tt>)</span>
887
+
888
+
889
+
890
+ </li>
891
+
892
+ </ul>
893
+
894
+ </div><table class="source_code">
895
+ <tr>
896
+ <td>
897
+ <pre class="lines">
898
+
899
+
900
+ 388
901
+ 389
902
+ 390</pre>
903
+ </td>
904
+ <td>
905
+ <pre class="code"><span class="info file"># File 'lib/prismic.rb', line 388</span>
906
+
907
+ <span class='kw'>def</span> <span class='id identifier rubyid_total_pages'>total_pages</span>
908
+ <span class='ivar'>@total_pages</span>
909
+ <span class='kw'>end</span></pre>
910
+ </td>
911
+ </tr>
912
+ </table>
913
+ </div>
914
+
915
+
916
+ <span id="total_results_size=-instance_method"></span>
917
+ <div class="method_details ">
918
+ <h3 class="signature " id="total_results_size-instance_method">
919
+
920
+ - (<tt>Number</tt>) <strong>total_results_size</strong>
921
+
922
+
923
+
924
+
925
+
926
+ </h3><div class="docstring">
927
+ <div class="discussion">
928
+
929
+
930
+ </div>
931
+ </div>
932
+ <div class="tags">
933
+
934
+ <p class="tag_title">Returns:</p>
935
+ <ul class="return">
936
+
937
+ <li>
938
+
939
+
940
+ <span class='type'>(<tt>Number</tt>)</span>
941
+
942
+
943
+
944
+ </li>
945
+
946
+ </ul>
947
+
948
+ </div><table class="source_code">
949
+ <tr>
950
+ <td>
951
+ <pre class="lines">
952
+
953
+
954
+ 386
955
+ 387
956
+ 388</pre>
957
+ </td>
958
+ <td>
959
+ <pre class="code"><span class="info file"># File 'lib/prismic.rb', line 386</span>
960
+
961
+ <span class='kw'>def</span> <span class='id identifier rubyid_total_results_size'>total_results_size</span>
962
+ <span class='ivar'>@total_results_size</span>
963
+ <span class='kw'>end</span></pre>
964
+ </td>
965
+ </tr>
966
+ </table>
967
+ </div>
968
+
969
+ </div>
970
+
971
+
972
+ <div id="instance_method_details" class="method_details_list">
973
+ <h2>Instance Method Details</h2>
974
+
975
+
976
+ <div class="method_details first">
977
+ <h3 class="signature first" id="[]-instance_method">
978
+
979
+ - (<tt><span class='object_link'><a href="Document.html" title="Prismic::Document (class)">Document</a></span></tt>) <strong>[]</strong>(i)
980
+
981
+
982
+
983
+ <span class="aliases">Also known as:
984
+ <span class="names"><span id='get-instance_method'>get</span></span>
985
+ </span>
986
+
987
+
988
+
989
+ </h3><div class="docstring">
990
+ <div class="discussion">
991
+ <p>Accessing the i-th document in the results</p>
992
+
993
+
994
+ </div>
995
+ </div>
996
+ <div class="tags">
997
+
998
+ <p class="tag_title">Returns:</p>
999
+ <ul class="return">
1000
+
1001
+ <li>
1002
+
1003
+
1004
+ <span class='type'>(<tt><span class='object_link'><a href="Document.html" title="Prismic::Document (class)">Document</a></span></tt>)</span>
1005
+
1006
+
1007
+
1008
+ </li>
1009
+
1010
+ </ul>
1011
+
1012
+ </div><table class="source_code">
1013
+ <tr>
1014
+ <td>
1015
+ <pre class="lines">
1016
+
1017
+
1018
+ 413
1019
+ 414
1020
+ 415</pre>
1021
+ </td>
1022
+ <td>
1023
+ <pre class="code"><span class="info file"># File 'lib/prismic.rb', line 413</span>
1024
+
1025
+ <span class='kw'>def</span> <span class='op'>[]</span><span class='lparen'>(</span><span class='id identifier rubyid_i'>i</span><span class='rparen'>)</span>
1026
+ <span class='ivar'>@results</span><span class='lbracket'>[</span><span class='id identifier rubyid_i'>i</span><span class='rbracket'>]</span>
1027
+ <span class='kw'>end</span></pre>
1028
+ </td>
1029
+ </tr>
1030
+ </table>
1031
+ </div>
1032
+
1033
+ <div class="method_details ">
1034
+ <h3 class="signature " id="each-instance_method">
1035
+
1036
+ - (<tt>Object</tt>) <strong>each</strong> {|document| ... }
1037
+
1038
+
1039
+
1040
+
1041
+
1042
+ </h3><div class="docstring">
1043
+ <div class="discussion">
1044
+ <p>Iterates over received documents</p>
1045
+
1046
+ <p>This method <em>does not</em> paginates by itself. So only the received document
1047
+ will be returned.</p>
1048
+
1049
+
1050
+ </div>
1051
+ </div>
1052
+ <div class="tags">
1053
+
1054
+ <p class="tag_title">Yield Parameters:</p>
1055
+ <ul class="yieldparam">
1056
+
1057
+ <li>
1058
+
1059
+ <span class='name'>document</span>
1060
+
1061
+
1062
+ <span class='type'>(<tt><span class='object_link'><a href="Document.html" title="Prismic::Document (class)">Document</a></span></tt>)</span>
1063
+
1064
+
1065
+
1066
+ </li>
1067
+
1068
+ </ul>
1069
+
1070
+ </div><table class="source_code">
1071
+ <tr>
1072
+ <td>
1073
+ <pre class="lines">
1074
+
1075
+
1076
+ 424
1077
+ 425
1078
+ 426</pre>
1079
+ </td>
1080
+ <td>
1081
+ <pre class="code"><span class="info file"># File 'lib/prismic.rb', line 424</span>
1082
+
1083
+ <span class='kw'>def</span> <span class='id identifier rubyid_each'>each</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='id identifier rubyid_blk'>blk</span><span class='rparen'>)</span>
1084
+ <span class='ivar'>@results</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='id identifier rubyid_blk'>blk</span><span class='rparen'>)</span>
1085
+ <span class='kw'>end</span></pre>
1086
+ </td>
1087
+ </tr>
1088
+ </table>
1089
+ </div>
1090
+
1091
+ <div class="method_details ">
1092
+ <h3 class="signature " id="length-instance_method">
1093
+
1094
+ - (<tt>Fixum</tt>) <strong>length</strong>
1095
+
1096
+
1097
+
1098
+ <span class="aliases">Also known as:
1099
+ <span class="names"><span id='size-instance_method'>size</span></span>
1100
+ </span>
1101
+
1102
+
1103
+
1104
+ </h3><div class="docstring">
1105
+ <div class="discussion">
1106
+ <p>Return the number of returned documents</p>
1107
+
1108
+
1109
+ </div>
1110
+ </div>
1111
+ <div class="tags">
1112
+
1113
+ <p class="tag_title">Returns:</p>
1114
+ <ul class="return">
1115
+
1116
+ <li>
1117
+
1118
+
1119
+ <span class='type'>(<tt>Fixum</tt>)</span>
1120
+
1121
+
1122
+
1123
+ </li>
1124
+
1125
+ </ul>
1126
+
1127
+ </div><table class="source_code">
1128
+ <tr>
1129
+ <td>
1130
+ <pre class="lines">
1131
+
1132
+
1133
+ 432
1134
+ 433
1135
+ 434</pre>
1136
+ </td>
1137
+ <td>
1138
+ <pre class="code"><span class="info file"># File 'lib/prismic.rb', line 432</span>
1139
+
1140
+ <span class='kw'>def</span> <span class='id identifier rubyid_length'>length</span>
1141
+ <span class='ivar'>@results</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span>
1142
+ <span class='kw'>end</span></pre>
1143
+ </td>
1144
+ </tr>
1145
+ </table>
1146
+ </div>
1147
+
1148
+ </div>
1149
+
1150
+ </div>
1151
+
1152
+ <div id="footer">
1153
+ Generated on Tue Sep 27 10:47:06 2016 by
1154
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1155
+ 0.8.7.4 (ruby-2.0.0).
1156
+ </div>
1157
+
1158
+ </body>
1159
+ </html>