prismic.io 1.4.3 → 1.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/docs/Prismic/API/BadPrismicResponseError.html +44 -43
- data/docs/Prismic/API/OAuth.html +99 -98
- data/docs/Prismic/API/PrismicWSAuthError.html +67 -66
- data/docs/Prismic/API/PrismicWSConnectionError.html +51 -50
- data/docs/Prismic/API.html +434 -280
- data/docs/Prismic/BasicNullCache.html +49 -48
- data/docs/Prismic/DefaultHTTPClient.html +85 -79
- data/docs/Prismic/Document.html +279 -83
- data/docs/Prismic/Error.html +52 -51
- data/docs/Prismic/Experiment.html +60 -59
- data/docs/Prismic/Experiments.html +61 -60
- data/docs/Prismic/Field.html +54 -53
- data/docs/Prismic/Form.html +70 -69
- data/docs/Prismic/Fragments/Color.html +60 -59
- data/docs/Prismic/Fragments/Date.html +52 -51
- data/docs/Prismic/Fragments/DocumentLink.html +78 -76
- data/docs/Prismic/Fragments/Embed.html +60 -59
- data/docs/Prismic/Fragments/FileLink.html +58 -57
- data/docs/Prismic/Fragments/Fragment.html +49 -48
- data/docs/Prismic/Fragments/GeoPoint.html +54 -53
- data/docs/Prismic/Fragments/Group.html +65 -63
- data/docs/Prismic/Fragments/GroupDocument.html +57 -55
- data/docs/Prismic/Fragments/Image/View.html +64 -63
- data/docs/Prismic/Fragments/Image/ViewDoesNotExistException.html +44 -43
- data/docs/Prismic/Fragments/Image.html +69 -68
- data/docs/Prismic/Fragments/ImageLink.html +50 -49
- data/docs/Prismic/Fragments/Link.html +53 -52
- data/docs/Prismic/Fragments/Multiple.html +58 -57
- data/docs/Prismic/Fragments/Number.html +54 -53
- data/docs/Prismic/Fragments/Select.html +52 -51
- data/docs/Prismic/Fragments/Separator.html +54 -53
- data/docs/Prismic/Fragments/Slice.html +58 -57
- data/docs/Prismic/Fragments/SliceZone.html +54 -53
- data/docs/Prismic/Fragments/StructuredText/Block/Embed.html +52 -51
- data/docs/Prismic/Fragments/StructuredText/Block/Heading.html +52 -51
- data/docs/Prismic/Fragments/StructuredText/Block/Image.html +66 -65
- data/docs/Prismic/Fragments/StructuredText/Block/ListItem.html +52 -51
- data/docs/Prismic/Fragments/StructuredText/Block/Paragraph.html +47 -46
- data/docs/Prismic/Fragments/StructuredText/Block/Preformatted.html +47 -46
- data/docs/Prismic/Fragments/StructuredText/Block/Text.html +68 -64
- data/docs/Prismic/Fragments/StructuredText/Block.html +47 -46
- data/docs/Prismic/Fragments/StructuredText/BlockGroup.html +54 -53
- data/docs/Prismic/Fragments/StructuredText/Span/Em.html +47 -46
- data/docs/Prismic/Fragments/StructuredText/Span/Hyperlink.html +53 -52
- data/docs/Prismic/Fragments/StructuredText/Span/Label.html +52 -51
- data/docs/Prismic/Fragments/StructuredText/Span/Strong.html +47 -46
- data/docs/Prismic/Fragments/StructuredText/Span.html +52 -51
- data/docs/Prismic/Fragments/StructuredText.html +59 -58
- data/docs/Prismic/Fragments/Text.html +54 -53
- data/docs/Prismic/Fragments/Timestamp.html +52 -51
- data/docs/Prismic/Fragments/WebLink.html +50 -49
- data/docs/Prismic/Fragments.html +39 -39
- data/docs/Prismic/HtmlSerializer.html +57 -56
- data/docs/Prismic/JsonParser.html +145 -143
- data/docs/Prismic/LinkResolver.html +73 -72
- data/docs/Prismic/LruCache.html +70 -69
- data/docs/Prismic/Predicates.html +261 -209
- data/docs/Prismic/Ref.html +86 -85
- data/docs/Prismic/Response.html +75 -73
- data/docs/Prismic/SearchForm/AuthenticationException.html +44 -43
- data/docs/Prismic/SearchForm/AuthorizationException.html +44 -43
- data/docs/Prismic/SearchForm/FormSearchException.html +44 -43
- data/docs/Prismic/SearchForm/NoRefSetException.html +44 -43
- data/docs/Prismic/SearchForm/RefNotFoundException.html +44 -43
- data/docs/Prismic/SearchForm/UnsupportedFormKind.html +44 -43
- data/docs/Prismic/SearchForm.html +97 -96
- data/docs/Prismic/Variation.html +57 -56
- data/docs/Prismic/WithFragments.html +115 -113
- data/docs/Prismic.html +91 -93
- data/docs/_index.html +32 -35
- data/docs/class_list.html +24 -27
- data/docs/css/full_list.css +32 -31
- data/docs/css/style.css +244 -91
- data/docs/file.README.html +39 -74
- data/docs/file_list.html +26 -26
- data/docs/frames.html +7 -16
- data/docs/index.html +39 -74
- data/docs/js/app.js +101 -77
- data/docs/js/full_list.js +170 -132
- data/docs/method_list.html +1995 -1189
- data/docs/top-level-namespace.html +34 -36
- data/lib/prismic/api.rb +10 -1
- data/lib/prismic/fragments/link.rb +3 -2
- data/lib/prismic/json_parsers.rb +14 -0
- data/lib/prismic/version.rb +1 -1
- data/lib/prismic.rb +47 -5
- data/spec/cache_spec.rb +2 -2
- data/spec/fragments_spec.rb +8 -1
- data/spec/json_parsers_spec.rb +13 -1
- data/spec/prismic_spec.rb +14 -7
- data/spec/responses_mocks/document.json +13 -0
- data/spec/simple_search_spec.rb +9 -0
- metadata +2 -2
@@ -1,12 +1,12 @@
|
|
1
|
-
<!DOCTYPE html
|
2
|
-
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
4
3
|
<head>
|
5
|
-
<meta
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
6
|
<title>
|
7
7
|
Class: Prismic::SearchForm
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8
|
9
|
+
— Documentation by YARD 0.9.8
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -15,9 +15,8 @@
|
|
15
15
|
<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
|
16
16
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
|
-
|
18
|
+
pathId = "Prismic::SearchForm";
|
19
19
|
relpath = '../';
|
20
|
-
framesUrl = "../frames.html#!Prismic/SearchForm.html";
|
21
20
|
</script>
|
22
21
|
|
23
22
|
|
@@ -28,51 +27,48 @@
|
|
28
27
|
|
29
28
|
</head>
|
30
29
|
<body>
|
31
|
-
<div
|
32
|
-
<
|
30
|
+
<div class="nav_wrap">
|
31
|
+
<iframe id="nav" src="../class_list.html?1"></iframe>
|
32
|
+
<div id="resizer"></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="main" tabindex="-1">
|
36
|
+
<div id="header">
|
37
|
+
<div id="menu">
|
33
38
|
|
34
39
|
<a href="../_index.html">Index (S)</a> »
|
35
40
|
<span class='title'><span class='object_link'><a href="../Prismic.html" title="Prismic (module)">Prismic</a></span></span>
|
36
41
|
»
|
37
42
|
<span class="title">SearchForm</span>
|
38
43
|
|
39
|
-
|
40
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
44
|
</div>
|
42
45
|
|
43
|
-
|
46
|
+
<div id="search">
|
44
47
|
|
45
48
|
<a class="full_list_link" id="class_list_link"
|
46
49
|
href="../class_list.html">
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
</a>
|
54
|
-
|
55
|
-
<a class="full_list_link" id="file_list_link"
|
56
|
-
href="../file_list.html">
|
57
|
-
File List
|
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>
|
58
56
|
</a>
|
59
57
|
|
60
58
|
</div>
|
61
|
-
|
62
|
-
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
63
61
|
|
64
|
-
|
65
|
-
|
66
|
-
<div id="content"><h1>Class: Prismic::SearchForm
|
62
|
+
<div id="content"><h1>Class: Prismic::SearchForm
|
67
63
|
|
68
64
|
|
69
65
|
|
70
66
|
</h1>
|
71
|
-
|
72
|
-
<dl class="box">
|
67
|
+
<div class="box_info">
|
73
68
|
|
74
|
-
|
75
|
-
<
|
69
|
+
<dl>
|
70
|
+
<dt>Inherits:</dt>
|
71
|
+
<dd>
|
76
72
|
<span class="inheritName">Object</span>
|
77
73
|
|
78
74
|
<ul class="fullTree">
|
@@ -83,21 +79,25 @@
|
|
83
79
|
</ul>
|
84
80
|
<a href="#" class="inheritanceTree">show all</a>
|
85
81
|
|
86
|
-
|
87
|
-
|
82
|
+
</dd>
|
83
|
+
</dl>
|
84
|
+
|
85
|
+
|
88
86
|
|
89
87
|
|
90
|
-
|
91
88
|
|
92
|
-
|
93
89
|
|
94
90
|
|
91
|
+
|
92
|
+
|
93
|
+
|
95
94
|
|
96
|
-
|
97
|
-
<
|
95
|
+
<dl>
|
96
|
+
<dt>Defined in:</dt>
|
97
|
+
<dd>lib/prismic.rb</dd>
|
98
|
+
</dl>
|
98
99
|
|
99
|
-
</
|
100
|
-
<div class="clear"></div>
|
100
|
+
</div>
|
101
101
|
|
102
102
|
<h2>Overview</h2><div class="docstring">
|
103
103
|
<div class="discussion">
|
@@ -149,13 +149,13 @@ Note that these methods are not created if they risk to add confusion:</p>
|
|
149
149
|
|
150
150
|
|
151
151
|
|
152
|
-
<h2>Instance Attribute Summary <small
|
152
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
153
153
|
<ul class="summary">
|
154
154
|
|
155
155
|
<li class="public ">
|
156
156
|
<span class="summary_signature">
|
157
157
|
|
158
|
-
<a href="#api-instance_method" title="#api (instance method)"
|
158
|
+
<a href="#api-instance_method" title="#api (instance method)">#<strong>api</strong> ⇒ Object </a>
|
159
159
|
|
160
160
|
|
161
161
|
|
@@ -181,7 +181,7 @@ Note that these methods are not created if they risk to add confusion:</p>
|
|
181
181
|
<li class="public ">
|
182
182
|
<span class="summary_signature">
|
183
183
|
|
184
|
-
<a href="#data-instance_method" title="#data (instance method)"
|
184
|
+
<a href="#data-instance_method" title="#data (instance method)">#<strong>data</strong> ⇒ Object </a>
|
185
185
|
|
186
186
|
|
187
187
|
|
@@ -207,7 +207,7 @@ Note that these methods are not created if they risk to add confusion:</p>
|
|
207
207
|
<li class="public ">
|
208
208
|
<span class="summary_signature">
|
209
209
|
|
210
|
-
<a href="#form-instance_method" title="#form (instance method)"
|
210
|
+
<a href="#form-instance_method" title="#form (instance method)">#<strong>form</strong> ⇒ Object </a>
|
211
211
|
|
212
212
|
|
213
213
|
|
@@ -233,7 +233,7 @@ Note that these methods are not created if they risk to add confusion:</p>
|
|
233
233
|
<li class="public ">
|
234
234
|
<span class="summary_signature">
|
235
235
|
|
236
|
-
<a href="#ref-instance_method" title="#ref (instance method)"
|
236
|
+
<a href="#ref-instance_method" title="#ref (instance method)">#<strong>ref</strong>(ref) ⇒ SearchForm </a>
|
237
237
|
|
238
238
|
|
239
239
|
|
@@ -264,7 +264,7 @@ Note that these methods are not created if they risk to add confusion:</p>
|
|
264
264
|
|
265
265
|
<h2>
|
266
266
|
Instance Method Summary
|
267
|
-
<small
|
267
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
268
268
|
</h2>
|
269
269
|
|
270
270
|
<ul class="summary">
|
@@ -272,7 +272,7 @@ Note that these methods are not created if they risk to add confusion:</p>
|
|
272
272
|
<li class="public ">
|
273
273
|
<span class="summary_signature">
|
274
274
|
|
275
|
-
<a href="#fetch-instance_method" title="#fetch (instance method)"
|
275
|
+
<a href="#fetch-instance_method" title="#fetch (instance method)">#<strong>fetch</strong>(fields) ⇒ SearchForm </a>
|
276
276
|
|
277
277
|
|
278
278
|
|
@@ -295,7 +295,7 @@ Note that these methods are not created if they risk to add confusion:</p>
|
|
295
295
|
<li class="public ">
|
296
296
|
<span class="summary_signature">
|
297
297
|
|
298
|
-
<a href="#fetch_links-instance_method" title="#fetch_links (instance method)"
|
298
|
+
<a href="#fetch_links-instance_method" title="#fetch_links (instance method)">#<strong>fetch_links</strong>(fields) ⇒ SearchForm </a>
|
299
299
|
|
300
300
|
|
301
301
|
|
@@ -318,7 +318,7 @@ Note that these methods are not created if they risk to add confusion:</p>
|
|
318
318
|
<li class="public ">
|
319
319
|
<span class="summary_signature">
|
320
320
|
|
321
|
-
<a href="#form_action-instance_method" title="#form_action (instance method)"
|
321
|
+
<a href="#form_action-instance_method" title="#form_action (instance method)">#<strong>form_action</strong> ⇒ String </a>
|
322
322
|
|
323
323
|
|
324
324
|
|
@@ -341,7 +341,7 @@ Note that these methods are not created if they risk to add confusion:</p>
|
|
341
341
|
<li class="public ">
|
342
342
|
<span class="summary_signature">
|
343
343
|
|
344
|
-
<a href="#form_enctype-instance_method" title="#form_enctype (instance method)"
|
344
|
+
<a href="#form_enctype-instance_method" title="#form_enctype (instance method)">#<strong>form_enctype</strong> ⇒ String </a>
|
345
345
|
|
346
346
|
|
347
347
|
|
@@ -364,7 +364,7 @@ Note that these methods are not created if they risk to add confusion:</p>
|
|
364
364
|
<li class="public ">
|
365
365
|
<span class="summary_signature">
|
366
366
|
|
367
|
-
<a href="#form_fields-instance_method" title="#form_fields (instance method)"
|
367
|
+
<a href="#form_fields-instance_method" title="#form_fields (instance method)">#<strong>form_fields</strong> ⇒ String </a>
|
368
368
|
|
369
369
|
|
370
370
|
|
@@ -387,7 +387,7 @@ Note that these methods are not created if they risk to add confusion:</p>
|
|
387
387
|
<li class="public ">
|
388
388
|
<span class="summary_signature">
|
389
389
|
|
390
|
-
<a href="#form_method-instance_method" title="#form_method (instance method)"
|
390
|
+
<a href="#form_method-instance_method" title="#form_method (instance method)">#<strong>form_method</strong> ⇒ String </a>
|
391
391
|
|
392
392
|
|
393
393
|
|
@@ -410,7 +410,7 @@ Note that these methods are not created if they risk to add confusion:</p>
|
|
410
410
|
<li class="public ">
|
411
411
|
<span class="summary_signature">
|
412
412
|
|
413
|
-
<a href="#form_name-instance_method" title="#form_name (instance method)"
|
413
|
+
<a href="#form_name-instance_method" title="#form_name (instance method)">#<strong>form_name</strong> ⇒ String </a>
|
414
414
|
|
415
415
|
|
416
416
|
|
@@ -433,7 +433,7 @@ Note that these methods are not created if they risk to add confusion:</p>
|
|
433
433
|
<li class="public ">
|
434
434
|
<span class="summary_signature">
|
435
435
|
|
436
|
-
<a href="#form_rel-instance_method" title="#form_rel (instance method)"
|
436
|
+
<a href="#form_rel-instance_method" title="#form_rel (instance method)">#<strong>form_rel</strong> ⇒ String </a>
|
437
437
|
|
438
438
|
|
439
439
|
|
@@ -456,7 +456,7 @@ Note that these methods are not created if they risk to add confusion:</p>
|
|
456
456
|
<li class="public ">
|
457
457
|
<span class="summary_signature">
|
458
458
|
|
459
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)"
|
459
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(api, form, data = {}, ref = nil) ⇒ SearchForm </a>
|
460
460
|
|
461
461
|
|
462
462
|
|
@@ -481,7 +481,7 @@ Note that these methods are not created if they risk to add confusion:</p>
|
|
481
481
|
<li class="public ">
|
482
482
|
<span class="summary_signature">
|
483
483
|
|
484
|
-
<a href="#orderings-instance_method" title="#orderings (instance method)"
|
484
|
+
<a href="#orderings-instance_method" title="#orderings (instance method)">#<strong>orderings</strong>(orderings) ⇒ SearchForm </a>
|
485
485
|
|
486
486
|
|
487
487
|
|
@@ -504,7 +504,7 @@ Note that these methods are not created if they risk to add confusion:</p>
|
|
504
504
|
<li class="public ">
|
505
505
|
<span class="summary_signature">
|
506
506
|
|
507
|
-
<a href="#page-instance_method" title="#page (instance method)"
|
507
|
+
<a href="#page-instance_method" title="#page (instance method)">#<strong>page</strong>(page) ⇒ SearchForm </a>
|
508
508
|
|
509
509
|
|
510
510
|
|
@@ -527,7 +527,7 @@ Note that these methods are not created if they risk to add confusion:</p>
|
|
527
527
|
<li class="public ">
|
528
528
|
<span class="summary_signature">
|
529
529
|
|
530
|
-
<a href="#page_size-instance_method" title="#page_size (instance method)"
|
530
|
+
<a href="#page_size-instance_method" title="#page_size (instance method)">#<strong>page_size</strong>(page_size) ⇒ SearchForm </a>
|
531
531
|
|
532
532
|
|
533
533
|
|
@@ -550,7 +550,7 @@ Note that these methods are not created if they risk to add confusion:</p>
|
|
550
550
|
<li class="public ">
|
551
551
|
<span class="summary_signature">
|
552
552
|
|
553
|
-
<a href="#q-instance_method" title="#q (instance method)"
|
553
|
+
<a href="#q-instance_method" title="#q (instance method)">#<strong>q</strong>(*query) ⇒ Object </a>
|
554
554
|
|
555
555
|
|
556
556
|
|
@@ -572,7 +572,7 @@ Note that these methods are not created if they risk to add confusion:</p>
|
|
572
572
|
<li class="public ">
|
573
573
|
<span class="summary_signature">
|
574
574
|
|
575
|
-
<a href="#query-instance_method" title="#query (instance method)"
|
575
|
+
<a href="#query-instance_method" title="#query (instance method)">#<strong>query</strong>(*query) ⇒ Object </a>
|
576
576
|
|
577
577
|
|
578
578
|
|
@@ -595,7 +595,7 @@ Note that these methods are not created if they risk to add confusion:</p>
|
|
595
595
|
<li class="public ">
|
596
596
|
<span class="summary_signature">
|
597
597
|
|
598
|
-
<a href="#serialize-instance_method" title="#serialize (instance method)"
|
598
|
+
<a href="#serialize-instance_method" title="#serialize (instance method)">#<strong>serialize</strong>(field) ⇒ Object </a>
|
599
599
|
|
600
600
|
|
601
601
|
|
@@ -617,7 +617,7 @@ Note that these methods are not created if they risk to add confusion:</p>
|
|
617
617
|
<li class="public ">
|
618
618
|
<span class="summary_signature">
|
619
619
|
|
620
|
-
<a href="#set-instance_method" title="#set (instance method)"
|
620
|
+
<a href="#set-instance_method" title="#set (instance method)">#<strong>set</strong>(field_name, value) ⇒ SearchForm </a>
|
621
621
|
|
622
622
|
|
623
623
|
|
@@ -640,7 +640,7 @@ Note that these methods are not created if they risk to add confusion:</p>
|
|
640
640
|
<li class="public ">
|
641
641
|
<span class="summary_signature">
|
642
642
|
|
643
|
-
<a href="#submit-instance_method" title="#submit (instance method)"
|
643
|
+
<a href="#submit-instance_method" title="#submit (instance method)">#<strong>submit</strong>(ref = nil) ⇒ Response </a>
|
644
644
|
|
645
645
|
|
646
646
|
|
@@ -663,7 +663,7 @@ Note that these methods are not created if they risk to add confusion:</p>
|
|
663
663
|
<li class="public ">
|
664
664
|
<span class="summary_signature">
|
665
665
|
|
666
|
-
<a href="#submit_raw-instance_method" title="#submit_raw (instance method)"
|
666
|
+
<a href="#submit_raw-instance_method" title="#submit_raw (instance method)">#<strong>submit_raw</strong>(ref = nil) ⇒ string </a>
|
667
667
|
|
668
668
|
|
669
669
|
|
@@ -692,7 +692,7 @@ Note that these methods are not created if they risk to add confusion:</p>
|
|
692
692
|
<div class="method_details first">
|
693
693
|
<h3 class="signature first" id="initialize-instance_method">
|
694
694
|
|
695
|
-
|
695
|
+
#<strong>initialize</strong>(api, form, data = {}, ref = nil) ⇒ <tt><span class='object_link'><a href="" title="Prismic::SearchForm (class)">SearchForm</a></span></tt>
|
696
696
|
|
697
697
|
|
698
698
|
|
@@ -751,7 +751,7 @@ Note that these methods are not created if they risk to add confusion:</p>
|
|
751
751
|
<div class="method_details first">
|
752
752
|
<h3 class="signature first" id="api-instance_method">
|
753
753
|
|
754
|
-
|
754
|
+
#<strong>api</strong> ⇒ <tt>Object</tt>
|
755
755
|
|
756
756
|
|
757
757
|
|
@@ -793,7 +793,7 @@ Note that these methods are not created if they risk to add confusion:</p>
|
|
793
793
|
<div class="method_details ">
|
794
794
|
<h3 class="signature " id="data-instance_method">
|
795
795
|
|
796
|
-
|
796
|
+
#<strong>data</strong> ⇒ <tt>Object</tt>
|
797
797
|
|
798
798
|
|
799
799
|
|
@@ -835,7 +835,7 @@ Note that these methods are not created if they risk to add confusion:</p>
|
|
835
835
|
<div class="method_details ">
|
836
836
|
<h3 class="signature " id="form-instance_method">
|
837
837
|
|
838
|
-
|
838
|
+
#<strong>form</strong> ⇒ <tt>Object</tt>
|
839
839
|
|
840
840
|
|
841
841
|
|
@@ -877,7 +877,7 @@ Note that these methods are not created if they risk to add confusion:</p>
|
|
877
877
|
<div class="method_details ">
|
878
878
|
<h3 class="signature " id="ref-instance_method">
|
879
879
|
|
880
|
-
|
880
|
+
#<strong>ref</strong>(ref) ⇒ <tt><span class='object_link'><a href="" title="Prismic::SearchForm (class)">SearchForm</a></span></tt>
|
881
881
|
|
882
882
|
|
883
883
|
|
@@ -960,7 +960,7 @@ Note that these methods are not created if they risk to add confusion:</p>
|
|
960
960
|
<div class="method_details first">
|
961
961
|
<h3 class="signature first" id="fetch-instance_method">
|
962
962
|
|
963
|
-
|
963
|
+
#<strong>fetch</strong>(fields) ⇒ <tt><span class='object_link'><a href="" title="Prismic::SearchForm (class)">SearchForm</a></span></tt>
|
964
964
|
|
965
965
|
|
966
966
|
|
@@ -1032,7 +1032,7 @@ Note that these methods are not created if they risk to add confusion:</p>
|
|
1032
1032
|
<div class="method_details ">
|
1033
1033
|
<h3 class="signature " id="fetch_links-instance_method">
|
1034
1034
|
|
1035
|
-
|
1035
|
+
#<strong>fetch_links</strong>(fields) ⇒ <tt><span class='object_link'><a href="" title="Prismic::SearchForm (class)">SearchForm</a></span></tt>
|
1036
1036
|
|
1037
1037
|
|
1038
1038
|
|
@@ -1104,7 +1104,7 @@ Note that these methods are not created if they risk to add confusion:</p>
|
|
1104
1104
|
<div class="method_details ">
|
1105
1105
|
<h3 class="signature " id="form_action-instance_method">
|
1106
1106
|
|
1107
|
-
|
1107
|
+
#<strong>form_action</strong> ⇒ <tt>String</tt>
|
1108
1108
|
|
1109
1109
|
|
1110
1110
|
|
@@ -1157,7 +1157,7 @@ Note that these methods are not created if they risk to add confusion:</p>
|
|
1157
1157
|
<div class="method_details ">
|
1158
1158
|
<h3 class="signature " id="form_enctype-instance_method">
|
1159
1159
|
|
1160
|
-
|
1160
|
+
#<strong>form_enctype</strong> ⇒ <tt>String</tt>
|
1161
1161
|
|
1162
1162
|
|
1163
1163
|
|
@@ -1210,7 +1210,7 @@ Note that these methods are not created if they risk to add confusion:</p>
|
|
1210
1210
|
<div class="method_details ">
|
1211
1211
|
<h3 class="signature " id="form_fields-instance_method">
|
1212
1212
|
|
1213
|
-
|
1213
|
+
#<strong>form_fields</strong> ⇒ <tt>String</tt>
|
1214
1214
|
|
1215
1215
|
|
1216
1216
|
|
@@ -1263,7 +1263,7 @@ Note that these methods are not created if they risk to add confusion:</p>
|
|
1263
1263
|
<div class="method_details ">
|
1264
1264
|
<h3 class="signature " id="form_method-instance_method">
|
1265
1265
|
|
1266
|
-
|
1266
|
+
#<strong>form_method</strong> ⇒ <tt>String</tt>
|
1267
1267
|
|
1268
1268
|
|
1269
1269
|
|
@@ -1316,7 +1316,7 @@ Note that these methods are not created if they risk to add confusion:</p>
|
|
1316
1316
|
<div class="method_details ">
|
1317
1317
|
<h3 class="signature " id="form_name-instance_method">
|
1318
1318
|
|
1319
|
-
|
1319
|
+
#<strong>form_name</strong> ⇒ <tt>String</tt>
|
1320
1320
|
|
1321
1321
|
|
1322
1322
|
|
@@ -1369,7 +1369,7 @@ Note that these methods are not created if they risk to add confusion:</p>
|
|
1369
1369
|
<div class="method_details ">
|
1370
1370
|
<h3 class="signature " id="form_rel-instance_method">
|
1371
1371
|
|
1372
|
-
|
1372
|
+
#<strong>form_rel</strong> ⇒ <tt>String</tt>
|
1373
1373
|
|
1374
1374
|
|
1375
1375
|
|
@@ -1422,7 +1422,7 @@ Note that these methods are not created if they risk to add confusion:</p>
|
|
1422
1422
|
<div class="method_details ">
|
1423
1423
|
<h3 class="signature " id="orderings-instance_method">
|
1424
1424
|
|
1425
|
-
|
1425
|
+
#<strong>orderings</strong>(orderings) ⇒ <tt><span class='object_link'><a href="" title="Prismic::SearchForm (class)">SearchForm</a></span></tt>
|
1426
1426
|
|
1427
1427
|
|
1428
1428
|
|
@@ -1494,7 +1494,7 @@ Note that these methods are not created if they risk to add confusion:</p>
|
|
1494
1494
|
<div class="method_details ">
|
1495
1495
|
<h3 class="signature " id="page-instance_method">
|
1496
1496
|
|
1497
|
-
|
1497
|
+
#<strong>page</strong>(page) ⇒ <tt><span class='object_link'><a href="" title="Prismic::SearchForm (class)">SearchForm</a></span></tt>
|
1498
1498
|
|
1499
1499
|
|
1500
1500
|
|
@@ -1566,7 +1566,7 @@ Note that these methods are not created if they risk to add confusion:</p>
|
|
1566
1566
|
<div class="method_details ">
|
1567
1567
|
<h3 class="signature " id="page_size-instance_method">
|
1568
1568
|
|
1569
|
-
|
1569
|
+
#<strong>page_size</strong>(page_size) ⇒ <tt><span class='object_link'><a href="" title="Prismic::SearchForm (class)">SearchForm</a></span></tt>
|
1570
1570
|
|
1571
1571
|
|
1572
1572
|
|
@@ -1638,7 +1638,7 @@ Note that these methods are not created if they risk to add confusion:</p>
|
|
1638
1638
|
<div class="method_details ">
|
1639
1639
|
<h3 class="signature " id="q-instance_method">
|
1640
1640
|
|
1641
|
-
|
1641
|
+
#<strong>q</strong>(*query) ⇒ <tt>Object</tt>
|
1642
1642
|
|
1643
1643
|
|
1644
1644
|
|
@@ -1702,7 +1702,7 @@ Note that these methods are not created if they risk to add confusion:</p>
|
|
1702
1702
|
<div class="method_details ">
|
1703
1703
|
<h3 class="signature " id="query-instance_method">
|
1704
1704
|
|
1705
|
-
|
1705
|
+
#<strong>query</strong>(*query) ⇒ <tt>Object</tt>
|
1706
1706
|
|
1707
1707
|
|
1708
1708
|
|
@@ -1744,7 +1744,7 @@ Note that these methods are not created if they risk to add confusion:</p>
|
|
1744
1744
|
<div class="method_details ">
|
1745
1745
|
<h3 class="signature " id="serialize-instance_method">
|
1746
1746
|
|
1747
|
-
|
1747
|
+
#<strong>serialize</strong>(field) ⇒ <tt>Object</tt>
|
1748
1748
|
|
1749
1749
|
|
1750
1750
|
|
@@ -1786,7 +1786,7 @@ Note that these methods are not created if they risk to add confusion:</p>
|
|
1786
1786
|
<div class="method_details ">
|
1787
1787
|
<h3 class="signature " id="set-instance_method">
|
1788
1788
|
|
1789
|
-
|
1789
|
+
#<strong>set</strong>(field_name, value) ⇒ <tt><span class='object_link'><a href="" title="Prismic::SearchForm (class)">SearchForm</a></span></tt>
|
1790
1790
|
|
1791
1791
|
|
1792
1792
|
|
@@ -1895,7 +1895,7 @@ Note that these methods are not created if they risk to add confusion:</p>
|
|
1895
1895
|
<div class="method_details ">
|
1896
1896
|
<h3 class="signature " id="submit-instance_method">
|
1897
1897
|
|
1898
|
-
|
1898
|
+
#<strong>submit</strong>(ref = nil) ⇒ <tt><span class='object_link'><a href="Response.html" title="Prismic::Response (class)">Response</a></span></tt>
|
1899
1899
|
|
1900
1900
|
|
1901
1901
|
|
@@ -1978,7 +1978,7 @@ specifics)</p>
|
|
1978
1978
|
<pre class="code"><span class="info file"># File 'lib/prismic.rb', line 273</span>
|
1979
1979
|
|
1980
1980
|
<span class='kw'>def</span> <span class='id identifier rubyid_submit'>submit</span><span class='lparen'>(</span><span class='id identifier rubyid_ref'>ref</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
1981
|
-
<span class='const'>Prismic</span><span class='op'>::</span><span class='const'>JsonParser</span><span class='period'>.</span><span class='id identifier rubyid_response_parser'>response_parser</span><span class='lparen'>(</span><span class='const'>JSON</span><span class='period'>.</span><span class='id identifier rubyid_load'>load</span><span class='lparen'>(</span><span class='id identifier rubyid_submit_raw'>submit_raw</span><span class='lparen'>(</span><span class='id identifier rubyid_ref'>ref</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
1981
|
+
<span class='const'><span class='object_link'><a href="../Prismic.html" title="Prismic (module)">Prismic</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="JsonParser.html" title="Prismic::JsonParser (module)">JsonParser</a></span></span><span class='period'>.</span><span class='id identifier rubyid_response_parser'><span class='object_link'><a href="JsonParser.html#response_parser-class_method" title="Prismic::JsonParser.response_parser (method)">response_parser</a></span></span><span class='lparen'>(</span><span class='const'>JSON</span><span class='period'>.</span><span class='id identifier rubyid_load'>load</span><span class='lparen'>(</span><span class='id identifier rubyid_submit_raw'>submit_raw</span><span class='lparen'>(</span><span class='id identifier rubyid_ref'>ref</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
1982
1982
|
<span class='kw'>end</span></pre>
|
1983
1983
|
</td>
|
1984
1984
|
</tr>
|
@@ -1988,7 +1988,7 @@ specifics)</p>
|
|
1988
1988
|
<div class="method_details ">
|
1989
1989
|
<h3 class="signature " id="submit_raw-instance_method">
|
1990
1990
|
|
1991
|
-
|
1991
|
+
#<strong>submit_raw</strong>(ref = nil) ⇒ <tt>string</tt>
|
1992
1992
|
|
1993
1993
|
|
1994
1994
|
|
@@ -2119,7 +2119,7 @@ defined)</p>
|
|
2119
2119
|
<span class='kw'>def</span> <span class='id identifier rubyid_submit_raw'>submit_raw</span><span class='lparen'>(</span><span class='id identifier rubyid_ref'>ref</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
2120
2120
|
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_ref'>ref</span><span class='lparen'>(</span><span class='id identifier rubyid_ref'>ref</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_ref'>ref</span>
|
2121
2121
|
<span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>ref</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='ivar'>@ref</span>
|
2122
|
-
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>NoRefSetException</span> <span class='kw'>unless</span> <span class='ivar'>@ref</span>
|
2122
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="SearchForm/NoRefSetException.html" title="Prismic::SearchForm::NoRefSetException (class)">NoRefSetException</a></span></span> <span class='kw'>unless</span> <span class='ivar'>@ref</span>
|
2123
2123
|
|
2124
2124
|
<span class='comment'># cache_key is a mix of HTTP URL and HTTP method
|
2125
2125
|
</span> <span class='id identifier rubyid_cache_key'>cache_key</span> <span class='op'>=</span> <span class='id identifier rubyid_form_method'>form_method</span><span class='op'>+</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>::</span><span class='tstring_end'>'</span></span><span class='op'>+</span><span class='id identifier rubyid_form_action'>form_action</span><span class='op'>+</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>?</span><span class='tstring_end'>'</span></span><span class='op'>+</span><span class='id identifier rubyid_data'>data</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span><span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_k'>k</span><span class='comma'>,</span><span class='id identifier rubyid_v'>v</span><span class='op'>|</span><span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_k'>k</span><span class='embexpr_end'>}</span><span class='tstring_content'>=</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_v'>v</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span><span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>&</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
@@ -2143,13 +2143,13 @@ defined)</p>
|
|
2143
2143
|
<span class='kw'>else</span>
|
2144
2144
|
<span class='id identifier rubyid_body'>body</span> <span class='op'>=</span> <span class='const'>JSON</span><span class='period'>.</span><span class='id identifier rubyid_load'>load</span><span class='lparen'>(</span><span class='id identifier rubyid_response'>response</span><span class='period'>.</span><span class='id identifier rubyid_body'>body</span><span class='rparen'>)</span> <span class='kw'>rescue</span> <span class='kw'>nil</span>
|
2145
2145
|
<span class='id identifier rubyid_error'>error</span> <span class='op'>=</span> <span class='id identifier rubyid_body'>body</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Hash</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='id identifier rubyid_body'>body</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>error</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>:</span> <span class='id identifier rubyid_response'>response</span><span class='period'>.</span><span class='id identifier rubyid_body'>body</span>
|
2146
|
-
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>AuthenticationException</span><span class='comma'>,</span> <span class='id identifier rubyid_error'>error</span> <span class='kw'>if</span> <span class='id identifier rubyid_response'>response</span><span class='period'>.</span><span class='id identifier rubyid_code'>code</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>401</span><span class='tstring_end'>'</span></span>
|
2147
|
-
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>AuthorizationException</span><span class='comma'>,</span> <span class='id identifier rubyid_error'>error</span> <span class='kw'>if</span> <span class='id identifier rubyid_response'>response</span><span class='period'>.</span><span class='id identifier rubyid_code'>code</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>403</span><span class='tstring_end'>'</span></span>
|
2148
|
-
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>RefNotFoundException</span><span class='comma'>,</span> <span class='id identifier rubyid_error'>error</span> <span class='kw'>if</span> <span class='id identifier rubyid_response'>response</span><span class='period'>.</span><span class='id identifier rubyid_code'>code</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>404</span><span class='tstring_end'>'</span></span>
|
2149
|
-
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>FormSearchException</span><span class='comma'>,</span> <span class='id identifier rubyid_error'>error</span>
|
2146
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="SearchForm/AuthenticationException.html" title="Prismic::SearchForm::AuthenticationException (class)">AuthenticationException</a></span></span><span class='comma'>,</span> <span class='id identifier rubyid_error'>error</span> <span class='kw'>if</span> <span class='id identifier rubyid_response'>response</span><span class='period'>.</span><span class='id identifier rubyid_code'>code</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>401</span><span class='tstring_end'>'</span></span>
|
2147
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="SearchForm/AuthorizationException.html" title="Prismic::SearchForm::AuthorizationException (class)">AuthorizationException</a></span></span><span class='comma'>,</span> <span class='id identifier rubyid_error'>error</span> <span class='kw'>if</span> <span class='id identifier rubyid_response'>response</span><span class='period'>.</span><span class='id identifier rubyid_code'>code</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>403</span><span class='tstring_end'>'</span></span>
|
2148
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="SearchForm/RefNotFoundException.html" title="Prismic::SearchForm::RefNotFoundException (class)">RefNotFoundException</a></span></span><span class='comma'>,</span> <span class='id identifier rubyid_error'>error</span> <span class='kw'>if</span> <span class='id identifier rubyid_response'>response</span><span class='period'>.</span><span class='id identifier rubyid_code'>code</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>404</span><span class='tstring_end'>'</span></span>
|
2149
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="SearchForm/FormSearchException.html" title="Prismic::SearchForm::FormSearchException (class)">FormSearchException</a></span></span><span class='comma'>,</span> <span class='id identifier rubyid_error'>error</span>
|
2150
2150
|
<span class='kw'>end</span>
|
2151
2151
|
<span class='kw'>else</span>
|
2152
|
-
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>UnsupportedFormKind</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Unsupported kind of form: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_form_method'>form_method</span><span class='embexpr_end'>}</span><span class='tstring_content'> / </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_enctype'>enctype</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
2152
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="SearchForm/UnsupportedFormKind.html" title="Prismic::SearchForm::UnsupportedFormKind (class)">UnsupportedFormKind</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Unsupported kind of form: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_form_method'>form_method</span><span class='embexpr_end'>}</span><span class='tstring_content'> / </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_enctype'>enctype</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
2153
2153
|
<span class='kw'>end</span>
|
2154
2154
|
<span class='kw'>end</span>
|
2155
2155
|
<span class='kw'>end</span></pre>
|
@@ -2162,11 +2162,12 @@ defined)</p>
|
|
2162
2162
|
|
2163
2163
|
</div>
|
2164
2164
|
|
2165
|
-
|
2166
|
-
Generated on
|
2165
|
+
<div id="footer">
|
2166
|
+
Generated on Mon Jan 16 16:05:08 2017 by
|
2167
2167
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
2168
|
-
0.8
|
2168
|
+
0.9.8 (ruby-2.3.1).
|
2169
2169
|
</div>
|
2170
2170
|
|
2171
|
+
</div>
|
2171
2172
|
</body>
|
2172
2173
|
</html>
|