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
|
Module: Prismic::JsonParser
|
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::JsonParser";
|
19
19
|
relpath = '../';
|
20
|
-
framesUrl = "../frames.html#!Prismic/JsonParser.html";
|
21
20
|
</script>
|
22
21
|
|
23
22
|
|
@@ -28,74 +27,72 @@
|
|
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 (J)</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">JsonParser</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>Module: Prismic::JsonParser
|
62
|
+
<div id="content"><h1>Module: Prismic::JsonParser
|
67
63
|
|
68
64
|
|
69
65
|
|
70
66
|
</h1>
|
67
|
+
<div class="box_info">
|
68
|
+
|
71
69
|
|
72
|
-
<dl class="box">
|
73
70
|
|
74
71
|
|
75
|
-
|
76
72
|
|
77
|
-
|
78
73
|
|
79
74
|
|
75
|
+
|
76
|
+
|
77
|
+
|
80
78
|
|
81
|
-
|
82
|
-
<
|
79
|
+
<dl>
|
80
|
+
<dt>Defined in:</dt>
|
81
|
+
<dd>lib/prismic/json_parsers.rb</dd>
|
82
|
+
</dl>
|
83
83
|
|
84
|
-
</
|
85
|
-
<div class="clear"></div>
|
84
|
+
</div>
|
86
85
|
|
87
86
|
|
88
87
|
<h2>Constant Summary</h2>
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
</dl>
|
98
|
-
|
88
|
+
<dl class="constants">
|
89
|
+
|
90
|
+
<dt id="warned_unknown_type-classvariable" class="">@@warned_unknown_type =
|
91
|
+
|
92
|
+
</dt>
|
93
|
+
<dd><pre class="code"><span class='lbracket'>[</span><span class='rbracket'>]</span></pre></dd>
|
94
|
+
|
95
|
+
</dl>
|
99
96
|
|
100
97
|
|
101
98
|
|
@@ -106,7 +103,7 @@
|
|
106
103
|
|
107
104
|
<h2>
|
108
105
|
Class Method Summary
|
109
|
-
<small
|
106
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
110
107
|
</h2>
|
111
108
|
|
112
109
|
<ul class="summary">
|
@@ -114,7 +111,7 @@
|
|
114
111
|
<li class="public ">
|
115
112
|
<span class="summary_signature">
|
116
113
|
|
117
|
-
<a href="#color_parser-class_method" title="color_parser (class method)"
|
114
|
+
<a href="#color_parser-class_method" title="color_parser (class method)">.<strong>color_parser</strong>(json) ⇒ Object </a>
|
118
115
|
|
119
116
|
|
120
117
|
|
@@ -136,7 +133,7 @@
|
|
136
133
|
<li class="public ">
|
137
134
|
<span class="summary_signature">
|
138
135
|
|
139
|
-
<a href="#date_parser-class_method" title="date_parser (class method)"
|
136
|
+
<a href="#date_parser-class_method" title="date_parser (class method)">.<strong>date_parser</strong>(json) ⇒ Object </a>
|
140
137
|
|
141
138
|
|
142
139
|
|
@@ -158,7 +155,7 @@
|
|
158
155
|
<li class="public ">
|
159
156
|
<span class="summary_signature">
|
160
157
|
|
161
|
-
<a href="#document_link_parser-class_method" title="document_link_parser (class method)"
|
158
|
+
<a href="#document_link_parser-class_method" title="document_link_parser (class method)">.<strong>document_link_parser</strong>(json) ⇒ Object </a>
|
162
159
|
|
163
160
|
|
164
161
|
|
@@ -180,7 +177,7 @@
|
|
180
177
|
<li class="public ">
|
181
178
|
<span class="summary_signature">
|
182
179
|
|
183
|
-
<a href="#document_parser-class_method" title="document_parser (class method)"
|
180
|
+
<a href="#document_parser-class_method" title="document_parser (class method)">.<strong>document_parser</strong>(json) ⇒ Object </a>
|
184
181
|
|
185
182
|
|
186
183
|
|
@@ -202,7 +199,7 @@
|
|
202
199
|
<li class="public ">
|
203
200
|
<span class="summary_signature">
|
204
201
|
|
205
|
-
<a href="#embed_parser-class_method" title="embed_parser (class method)"
|
202
|
+
<a href="#embed_parser-class_method" title="embed_parser (class method)">.<strong>embed_parser</strong>(json) ⇒ Object </a>
|
206
203
|
|
207
204
|
|
208
205
|
|
@@ -224,7 +221,7 @@
|
|
224
221
|
<li class="public ">
|
225
222
|
<span class="summary_signature">
|
226
223
|
|
227
|
-
<a href="#file_link_parser-class_method" title="file_link_parser (class method)"
|
224
|
+
<a href="#file_link_parser-class_method" title="file_link_parser (class method)">.<strong>file_link_parser</strong>(json) ⇒ Object </a>
|
228
225
|
|
229
226
|
|
230
227
|
|
@@ -246,7 +243,7 @@
|
|
246
243
|
<li class="public ">
|
247
244
|
<span class="summary_signature">
|
248
245
|
|
249
|
-
<a href="#fragment_parser-class_method" title="fragment_parser (class method)"
|
246
|
+
<a href="#fragment_parser-class_method" title="fragment_parser (class method)">.<strong>fragment_parser</strong>(fragment) ⇒ Object </a>
|
250
247
|
|
251
248
|
|
252
249
|
|
@@ -268,7 +265,7 @@
|
|
268
265
|
<li class="public ">
|
269
266
|
<span class="summary_signature">
|
270
267
|
|
271
|
-
<a href="#geo_point_parser-class_method" title="geo_point_parser (class method)"
|
268
|
+
<a href="#geo_point_parser-class_method" title="geo_point_parser (class method)">.<strong>geo_point_parser</strong>(json) ⇒ Object </a>
|
272
269
|
|
273
270
|
|
274
271
|
|
@@ -290,7 +287,7 @@
|
|
290
287
|
<li class="public ">
|
291
288
|
<span class="summary_signature">
|
292
289
|
|
293
|
-
<a href="#group_parser-class_method" title="group_parser (class method)"
|
290
|
+
<a href="#group_parser-class_method" title="group_parser (class method)">.<strong>group_parser</strong>(json) ⇒ Object </a>
|
294
291
|
|
295
292
|
|
296
293
|
|
@@ -312,7 +309,7 @@
|
|
312
309
|
<li class="public ">
|
313
310
|
<span class="summary_signature">
|
314
311
|
|
315
|
-
<a href="#image_link_parser-class_method" title="image_link_parser (class method)"
|
312
|
+
<a href="#image_link_parser-class_method" title="image_link_parser (class method)">.<strong>image_link_parser</strong>(json) ⇒ Object </a>
|
316
313
|
|
317
314
|
|
318
315
|
|
@@ -334,7 +331,7 @@
|
|
334
331
|
<li class="public ">
|
335
332
|
<span class="summary_signature">
|
336
333
|
|
337
|
-
<a href="#image_parser-class_method" title="image_parser (class method)"
|
334
|
+
<a href="#image_parser-class_method" title="image_parser (class method)">.<strong>image_parser</strong>(json) ⇒ Object </a>
|
338
335
|
|
339
336
|
|
340
337
|
|
@@ -356,7 +353,7 @@
|
|
356
353
|
<li class="public ">
|
357
354
|
<span class="summary_signature">
|
358
355
|
|
359
|
-
<a href="#multiple_parser-class_method" title="multiple_parser (class method)"
|
356
|
+
<a href="#multiple_parser-class_method" title="multiple_parser (class method)">.<strong>multiple_parser</strong>(json) ⇒ Object </a>
|
360
357
|
|
361
358
|
|
362
359
|
|
@@ -378,7 +375,7 @@
|
|
378
375
|
<li class="public ">
|
379
376
|
<span class="summary_signature">
|
380
377
|
|
381
|
-
<a href="#number_parser-class_method" title="number_parser (class method)"
|
378
|
+
<a href="#number_parser-class_method" title="number_parser (class method)">.<strong>number_parser</strong>(json) ⇒ Object </a>
|
382
379
|
|
383
380
|
|
384
381
|
|
@@ -400,7 +397,7 @@
|
|
400
397
|
<li class="public ">
|
401
398
|
<span class="summary_signature">
|
402
399
|
|
403
|
-
<a href="#parsers-class_method" title="parsers (class method)"
|
400
|
+
<a href="#parsers-class_method" title="parsers (class method)">.<strong>parsers</strong> ⇒ Object </a>
|
404
401
|
|
405
402
|
|
406
403
|
|
@@ -422,7 +419,7 @@
|
|
422
419
|
<li class="public ">
|
423
420
|
<span class="summary_signature">
|
424
421
|
|
425
|
-
<a href="#response_parser-class_method" title="response_parser (class method)"
|
422
|
+
<a href="#response_parser-class_method" title="response_parser (class method)">.<strong>response_parser</strong>(documents) ⇒ Object </a>
|
426
423
|
|
427
424
|
|
428
425
|
|
@@ -444,7 +441,7 @@
|
|
444
441
|
<li class="public ">
|
445
442
|
<span class="summary_signature">
|
446
443
|
|
447
|
-
<a href="#results_parser-class_method" title="results_parser (class method)"
|
444
|
+
<a href="#results_parser-class_method" title="results_parser (class method)">.<strong>results_parser</strong>(results) ⇒ Object </a>
|
448
445
|
|
449
446
|
|
450
447
|
|
@@ -466,7 +463,7 @@
|
|
466
463
|
<li class="public ">
|
467
464
|
<span class="summary_signature">
|
468
465
|
|
469
|
-
<a href="#select_parser-class_method" title="select_parser (class method)"
|
466
|
+
<a href="#select_parser-class_method" title="select_parser (class method)">.<strong>select_parser</strong>(json) ⇒ Object </a>
|
470
467
|
|
471
468
|
|
472
469
|
|
@@ -488,7 +485,7 @@
|
|
488
485
|
<li class="public ">
|
489
486
|
<span class="summary_signature">
|
490
487
|
|
491
|
-
<a href="#separator_parser-class_method" title="separator_parser (class method)"
|
488
|
+
<a href="#separator_parser-class_method" title="separator_parser (class method)">.<strong>separator_parser</strong>(json) ⇒ Object </a>
|
492
489
|
|
493
490
|
|
494
491
|
|
@@ -510,7 +507,7 @@
|
|
510
507
|
<li class="public ">
|
511
508
|
<span class="summary_signature">
|
512
509
|
|
513
|
-
<a href="#slices_parser-class_method" title="slices_parser (class method)"
|
510
|
+
<a href="#slices_parser-class_method" title="slices_parser (class method)">.<strong>slices_parser</strong>(json) ⇒ Object </a>
|
514
511
|
|
515
512
|
|
516
513
|
|
@@ -532,7 +529,7 @@
|
|
532
529
|
<li class="public ">
|
533
530
|
<span class="summary_signature">
|
534
531
|
|
535
|
-
<a href="#span_parser-class_method" title="span_parser (class method)"
|
532
|
+
<a href="#span_parser-class_method" title="span_parser (class method)">.<strong>span_parser</strong>(span) ⇒ Object </a>
|
536
533
|
|
537
534
|
|
538
535
|
|
@@ -554,7 +551,7 @@
|
|
554
551
|
<li class="public ">
|
555
552
|
<span class="summary_signature">
|
556
553
|
|
557
|
-
<a href="#structured_text_parser-class_method" title="structured_text_parser (class method)"
|
554
|
+
<a href="#structured_text_parser-class_method" title="structured_text_parser (class method)">.<strong>structured_text_parser</strong>(json) ⇒ Object </a>
|
558
555
|
|
559
556
|
|
560
557
|
|
@@ -576,7 +573,7 @@
|
|
576
573
|
<li class="public ">
|
577
574
|
<span class="summary_signature">
|
578
575
|
|
579
|
-
<a href="#text_parser-class_method" title="text_parser (class method)"
|
576
|
+
<a href="#text_parser-class_method" title="text_parser (class method)">.<strong>text_parser</strong>(json) ⇒ Object </a>
|
580
577
|
|
581
578
|
|
582
579
|
|
@@ -598,7 +595,7 @@
|
|
598
595
|
<li class="public ">
|
599
596
|
<span class="summary_signature">
|
600
597
|
|
601
|
-
<a href="#timestamp_parser-class_method" title="timestamp_parser (class method)"
|
598
|
+
<a href="#timestamp_parser-class_method" title="timestamp_parser (class method)">.<strong>timestamp_parser</strong>(json) ⇒ Object </a>
|
602
599
|
|
603
600
|
|
604
601
|
|
@@ -620,7 +617,7 @@
|
|
620
617
|
<li class="public ">
|
621
618
|
<span class="summary_signature">
|
622
619
|
|
623
|
-
<a href="#web_link_parser-class_method" title="web_link_parser (class method)"
|
620
|
+
<a href="#web_link_parser-class_method" title="web_link_parser (class method)">.<strong>web_link_parser</strong>(json) ⇒ Object </a>
|
624
621
|
|
625
622
|
|
626
623
|
|
@@ -651,7 +648,7 @@
|
|
651
648
|
<div class="method_details first">
|
652
649
|
<h3 class="signature first" id="color_parser-class_method">
|
653
650
|
|
654
|
-
|
651
|
+
.<strong>color_parser</strong>(json) ⇒ <tt>Object</tt>
|
655
652
|
|
656
653
|
|
657
654
|
|
@@ -671,7 +668,7 @@
|
|
671
668
|
<pre class="code"><span class="info file"># File 'lib/prismic/json_parsers.rb', line 119</span>
|
672
669
|
|
673
670
|
<span class='kw'>def</span> <span class='id identifier rubyid_color_parser'>color_parser</span><span class='lparen'>(</span><span class='id identifier rubyid_json'>json</span><span class='rparen'>)</span>
|
674
|
-
<span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>Color</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_json'>json</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>value</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='int'>1</span><span class='op'>..</span><span class='int'>6</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
671
|
+
<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="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/Color.html" title="Prismic::Fragments::Color (class)">Color</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Fragments/Color.html#initialize-instance_method" title="Prismic::Fragments::Color#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_json'>json</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>value</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='int'>1</span><span class='op'>..</span><span class='int'>6</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
675
672
|
<span class='kw'>end</span></pre>
|
676
673
|
</td>
|
677
674
|
</tr>
|
@@ -681,7 +678,7 @@
|
|
681
678
|
<div class="method_details ">
|
682
679
|
<h3 class="signature " id="date_parser-class_method">
|
683
680
|
|
684
|
-
|
681
|
+
.<strong>date_parser</strong>(json) ⇒ <tt>Object</tt>
|
685
682
|
|
686
683
|
|
687
684
|
|
@@ -701,7 +698,7 @@
|
|
701
698
|
<pre class="code"><span class="info file"># File 'lib/prismic/json_parsers.rb', line 79</span>
|
702
699
|
|
703
700
|
<span class='kw'>def</span> <span class='id identifier rubyid_date_parser'>date_parser</span><span class='lparen'>(</span><span class='id identifier rubyid_json'>json</span><span class='rparen'>)</span>
|
704
|
-
<span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>Date</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='id identifier rubyid_json'>json</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>value</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
701
|
+
<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="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/Date.html" title="Prismic::Fragments::Date (class)">Date</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Fragments/Date.html#initialize-instance_method" title="Prismic::Fragments::Date#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='id identifier rubyid_json'>json</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>value</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
705
702
|
<span class='kw'>end</span></pre>
|
706
703
|
</td>
|
707
704
|
</tr>
|
@@ -711,7 +708,7 @@
|
|
711
708
|
<div class="method_details ">
|
712
709
|
<h3 class="signature " id="document_link_parser-class_method">
|
713
710
|
|
714
|
-
|
711
|
+
.<strong>document_link_parser</strong>(json) ⇒ <tt>Object</tt>
|
715
712
|
|
716
713
|
|
717
714
|
|
@@ -762,7 +759,7 @@
|
|
762
759
|
<span class='kw'>end</span>
|
763
760
|
<span class='rbrace'>}</span><span class='rbracket'>]</span>
|
764
761
|
<span class='kw'>end</span>
|
765
|
-
<span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>DocumentLink</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span>
|
762
|
+
<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="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/DocumentLink.html" title="Prismic::Fragments::DocumentLink (class)">DocumentLink</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Fragments/DocumentLink.html#initialize-instance_method" title="Prismic::Fragments::DocumentLink#initialize (method)">new</a></span></span><span class='lparen'>(</span>
|
766
763
|
<span class='id identifier rubyid_doc'>doc</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>id</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
767
764
|
<span class='id identifier rubyid_doc'>doc</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>uid</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
768
765
|
<span class='id identifier rubyid_type'>type</span><span class='comma'>,</span>
|
@@ -779,7 +776,7 @@
|
|
779
776
|
<div class="method_details ">
|
780
777
|
<h3 class="signature " id="document_parser-class_method">
|
781
778
|
|
782
|
-
|
779
|
+
.<strong>document_parser</strong>(json) ⇒ <tt>Object</tt>
|
783
780
|
|
784
781
|
|
785
782
|
|
@@ -816,7 +813,9 @@
|
|
816
813
|
246
|
817
814
|
247
|
818
815
|
248
|
819
|
-
249
|
816
|
+
249
|
817
|
+
250
|
818
|
+
251</pre>
|
820
819
|
</td>
|
821
820
|
<td>
|
822
821
|
<pre class="code"><span class="info file"># File 'lib/prismic/json_parsers.rb', line 224</span>
|
@@ -838,13 +837,15 @@
|
|
838
837
|
<span class='lbracket'>[</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_fragment_parser'>fragment_parser</span><span class='lparen'>(</span><span class='id identifier rubyid_fragment'>fragment</span><span class='rparen'>)</span><span class='rbracket'>]</span>
|
839
838
|
<span class='rbrace'>}</span><span class='rbracket'>]</span>
|
840
839
|
|
841
|
-
<span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Document</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span>
|
840
|
+
<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="Document.html" title="Prismic::Document (class)">Document</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Document.html#initialize-instance_method" title="Prismic::Document#initialize (method)">new</a></span></span><span class='lparen'>(</span>
|
842
841
|
<span class='id identifier rubyid_json'>json</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>id</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
843
842
|
<span class='id identifier rubyid_json'>json</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>uid</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
844
843
|
<span class='id identifier rubyid_json'>json</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>type</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
845
844
|
<span class='id identifier rubyid_json'>json</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>href</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
846
845
|
<span class='id identifier rubyid_json'>json</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>tags</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
847
846
|
<span class='id identifier rubyid_json'>json</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>slugs</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</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_slug'>slug</span><span class='op'>|</span> <span class='const'>URI</span><span class='period'>.</span><span class='id identifier rubyid_unescape'>unescape</span><span class='lparen'>(</span><span class='id identifier rubyid_slug'>slug</span><span class='rparen'>)</span> <span class='rbrace'>}</span><span class='comma'>,</span>
|
847
|
+
<span class='id identifier rubyid_json'>json</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>first_publication_date</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>&&</span> <span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='id identifier rubyid_json'>json</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>first_publication_date</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='comma'>,</span>
|
848
|
+
<span class='id identifier rubyid_json'>json</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>last_publication_date</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>&&</span> <span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='id identifier rubyid_json'>json</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>last_publication_date</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='comma'>,</span>
|
848
849
|
<span class='id identifier rubyid_fragments'>fragments</span><span class='rparen'>)</span>
|
849
850
|
<span class='kw'>end</span></pre>
|
850
851
|
</td>
|
@@ -855,7 +856,7 @@
|
|
855
856
|
<div class="method_details ">
|
856
857
|
<h3 class="signature " id="embed_parser-class_method">
|
857
858
|
|
858
|
-
|
859
|
+
.<strong>embed_parser</strong>(json) ⇒ <tt>Object</tt>
|
859
860
|
|
860
861
|
|
861
862
|
|
@@ -883,7 +884,7 @@
|
|
883
884
|
|
884
885
|
<span class='kw'>def</span> <span class='id identifier rubyid_embed_parser'>embed_parser</span><span class='lparen'>(</span><span class='id identifier rubyid_json'>json</span><span class='rparen'>)</span>
|
885
886
|
<span class='id identifier rubyid_oembed'>oembed</span> <span class='op'>=</span> <span class='id identifier rubyid_json'>json</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>value</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>oembed</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
886
|
-
<span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>Embed</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span>
|
887
|
+
<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="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/Embed.html" title="Prismic::Fragments::Embed (class)">Embed</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Fragments/Embed.html#initialize-instance_method" title="Prismic::Fragments::Embed#initialize (method)">new</a></span></span><span class='lparen'>(</span>
|
887
888
|
<span class='id identifier rubyid_oembed'>oembed</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>type</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
888
889
|
<span class='id identifier rubyid_oembed'>oembed</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>provider_name</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
889
890
|
<span class='id identifier rubyid_oembed'>oembed</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>provider_url</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
@@ -899,7 +900,7 @@
|
|
899
900
|
<div class="method_details ">
|
900
901
|
<h3 class="signature " id="file_link_parser-class_method">
|
901
902
|
|
902
|
-
|
903
|
+
.<strong>file_link_parser</strong>(json) ⇒ <tt>Object</tt>
|
903
904
|
|
904
905
|
|
905
906
|
|
@@ -919,7 +920,7 @@
|
|
919
920
|
<pre class="code"><span class="info file"># File 'lib/prismic/json_parsers.rb', line 59</span>
|
920
921
|
|
921
922
|
<span class='kw'>def</span> <span class='id identifier rubyid_file_link_parser'>file_link_parser</span><span class='lparen'>(</span><span class='id identifier rubyid_json'>json</span><span class='rparen'>)</span>
|
922
|
-
<span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>FileLink</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_json'>json</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>value</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>file</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>url</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_json'>json</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>value</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>file</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>name</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_json'>json</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>value</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>file</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>kind</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_json'>json</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>value</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>file</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>size</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
923
|
+
<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="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/FileLink.html" title="Prismic::Fragments::FileLink (class)">FileLink</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Fragments/FileLink.html#initialize-instance_method" title="Prismic::Fragments::FileLink#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_json'>json</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>value</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>file</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>url</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_json'>json</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>value</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>file</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>name</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_json'>json</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>value</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>file</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>kind</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_json'>json</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>value</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>file</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>size</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
923
924
|
<span class='kw'>end</span></pre>
|
924
925
|
</td>
|
925
926
|
</tr>
|
@@ -929,7 +930,7 @@
|
|
929
930
|
<div class="method_details ">
|
930
931
|
<h3 class="signature " id="fragment_parser-class_method">
|
931
932
|
|
932
|
-
|
933
|
+
.<strong>fragment_parser</strong>(fragment) ⇒ <tt>Object</tt>
|
933
934
|
|
934
935
|
|
935
936
|
|
@@ -967,7 +968,7 @@
|
|
967
968
|
<div class="method_details ">
|
968
969
|
<h3 class="signature " id="geo_point_parser-class_method">
|
969
970
|
|
970
|
-
|
971
|
+
.<strong>geo_point_parser</strong>(json) ⇒ <tt>Object</tt>
|
971
972
|
|
972
973
|
|
973
974
|
|
@@ -990,7 +991,7 @@
|
|
990
991
|
<pre class="code"><span class="info file"># File 'lib/prismic/json_parsers.rb', line 102</span>
|
991
992
|
|
992
993
|
<span class='kw'>def</span> <span class='id identifier rubyid_geo_point_parser'>geo_point_parser</span><span class='lparen'>(</span><span class='id identifier rubyid_json'>json</span><span class='rparen'>)</span>
|
993
|
-
<span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>GeoPoint</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span>
|
994
|
+
<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="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/GeoPoint.html" title="Prismic::Fragments::GeoPoint (class)">GeoPoint</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Fragments/GeoPoint.html#initialize-instance_method" title="Prismic::Fragments::GeoPoint#initialize (method)">new</a></span></span><span class='lparen'>(</span>
|
994
995
|
<span class='id identifier rubyid_json'>json</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>value</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>longitude</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
995
996
|
<span class='id identifier rubyid_json'>json</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>value</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>latitude</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
996
997
|
<span class='rparen'>)</span>
|
@@ -1003,7 +1004,7 @@
|
|
1003
1004
|
<div class="method_details ">
|
1004
1005
|
<h3 class="signature " id="group_parser-class_method">
|
1005
1006
|
|
1006
|
-
|
1007
|
+
.<strong>group_parser</strong>(json) ⇒ <tt>Object</tt>
|
1007
1008
|
|
1008
1009
|
|
1009
1010
|
|
@@ -1031,9 +1032,9 @@
|
|
1031
1032
|
<span class='id identifier rubyid_fragment_list_array'>fragment_list_array</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
1032
1033
|
<span class='id identifier rubyid_json'>json</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>value</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_group'>group</span><span class='op'>|</span>
|
1033
1034
|
<span class='id identifier rubyid_fragments'>fragments</span> <span class='op'>=</span> <span class='const'>Hash</span><span class='lbracket'>[</span> <span class='id identifier rubyid_group'>group</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_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='op'>|</span> <span class='lbracket'>[</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_parsers'>parsers</span><span class='lbracket'>[</span><span class='id identifier rubyid_fragment'>fragment</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>type</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_fragment'>fragment</span><span class='rparen'>)</span><span class='rbracket'>]</span> <span class='rbrace'>}</span><span class='rbracket'>]</span>
|
1034
|
-
<span class='id identifier rubyid_fragment_list_array'>fragment_list_array</span> <span class='op'><<</span> <span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>GroupDocument</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_fragments'>fragments</span><span class='rparen'>)</span>
|
1035
|
+
<span class='id identifier rubyid_fragment_list_array'>fragment_list_array</span> <span class='op'><<</span> <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="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/GroupDocument.html" title="Prismic::Fragments::GroupDocument (class)">GroupDocument</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Fragments/GroupDocument.html#initialize-instance_method" title="Prismic::Fragments::GroupDocument#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_fragments'>fragments</span><span class='rparen'>)</span>
|
1035
1036
|
<span class='kw'>end</span>
|
1036
|
-
<span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>Group</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_fragment_list_array'>fragment_list_array</span><span class='rparen'>)</span>
|
1037
|
+
<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="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/Group.html" title="Prismic::Fragments::Group (class)">Group</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Fragments/Group.html#initialize-instance_method" title="Prismic::Fragments::Group#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_fragment_list_array'>fragment_list_array</span><span class='rparen'>)</span>
|
1037
1038
|
<span class='kw'>end</span></pre>
|
1038
1039
|
</td>
|
1039
1040
|
</tr>
|
@@ -1043,7 +1044,7 @@
|
|
1043
1044
|
<div class="method_details ">
|
1044
1045
|
<h3 class="signature " id="image_link_parser-class_method">
|
1045
1046
|
|
1046
|
-
|
1047
|
+
.<strong>image_link_parser</strong>(json) ⇒ <tt>Object</tt>
|
1047
1048
|
|
1048
1049
|
|
1049
1050
|
|
@@ -1063,7 +1064,7 @@
|
|
1063
1064
|
<pre class="code"><span class="info file"># File 'lib/prismic/json_parsers.rb', line 55</span>
|
1064
1065
|
|
1065
1066
|
<span class='kw'>def</span> <span class='id identifier rubyid_image_link_parser'>image_link_parser</span><span class='lparen'>(</span><span class='id identifier rubyid_json'>json</span><span class='rparen'>)</span>
|
1066
|
-
<span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>ImageLink</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_json'>json</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>value</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>image</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>url</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
1067
|
+
<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="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/ImageLink.html" title="Prismic::Fragments::ImageLink (class)">ImageLink</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Fragments/ImageLink.html#initialize-instance_method" title="Prismic::Fragments::ImageLink#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_json'>json</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>value</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>image</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>url</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
1067
1068
|
<span class='kw'>end</span></pre>
|
1068
1069
|
</td>
|
1069
1070
|
</tr>
|
@@ -1073,7 +1074,7 @@
|
|
1073
1074
|
<div class="method_details ">
|
1074
1075
|
<h3 class="signature " id="image_parser-class_method">
|
1075
1076
|
|
1076
|
-
|
1077
|
+
.<strong>image_parser</strong>(json) ⇒ <tt>Object</tt>
|
1077
1078
|
|
1078
1079
|
|
1079
1080
|
|
@@ -1105,7 +1106,7 @@
|
|
1105
1106
|
<span class='id identifier rubyid_views'>views</span><span class='lbracket'>[</span><span class='id identifier rubyid_name'>name</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_view_parser'>view_parser</span><span class='lparen'>(</span><span class='id identifier rubyid_view'>view</span><span class='rparen'>)</span>
|
1106
1107
|
<span class='kw'>end</span>
|
1107
1108
|
|
1108
|
-
<span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>Image</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_main'>main</span><span class='comma'>,</span> <span class='id identifier rubyid_views'>views</span><span class='rparen'>)</span>
|
1109
|
+
<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="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/Image.html" title="Prismic::Fragments::Image (class)">Image</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Fragments/Image.html#initialize-instance_method" title="Prismic::Fragments::Image#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_main'>main</span><span class='comma'>,</span> <span class='id identifier rubyid_views'>views</span><span class='rparen'>)</span>
|
1109
1110
|
<span class='kw'>end</span></pre>
|
1110
1111
|
</td>
|
1111
1112
|
</tr>
|
@@ -1115,7 +1116,7 @@
|
|
1115
1116
|
<div class="method_details ">
|
1116
1117
|
<h3 class="signature " id="multiple_parser-class_method">
|
1117
1118
|
|
1118
|
-
|
1119
|
+
.<strong>multiple_parser</strong>(json) ⇒ <tt>Object</tt>
|
1119
1120
|
|
1120
1121
|
|
1121
1122
|
|
@@ -1141,7 +1142,7 @@
|
|
1141
1142
|
<span class='id identifier rubyid_fragments'>fragments</span> <span class='op'>=</span> <span class='id identifier rubyid_json'>json</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_fragment'>fragment</span><span class='op'>|</span>
|
1142
1143
|
<span class='id identifier rubyid_parsers'>parsers</span><span class='lbracket'>[</span><span class='id identifier rubyid_fragment'>fragment</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>type</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_fragment'>fragment</span><span class='rparen'>)</span>
|
1143
1144
|
<span class='kw'>end</span>
|
1144
|
-
<span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>Multiple</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_fragments'>fragments</span><span class='rparen'>)</span>
|
1145
|
+
<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="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/Multiple.html" title="Prismic::Fragments::Multiple (class)">Multiple</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Fragments/Multiple.html#initialize-instance_method" title="Prismic::Fragments::Multiple#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_fragments'>fragments</span><span class='rparen'>)</span>
|
1145
1146
|
<span class='kw'>end</span></pre>
|
1146
1147
|
</td>
|
1147
1148
|
</tr>
|
@@ -1151,7 +1152,7 @@
|
|
1151
1152
|
<div class="method_details ">
|
1152
1153
|
<h3 class="signature " id="number_parser-class_method">
|
1153
1154
|
|
1154
|
-
|
1155
|
+
.<strong>number_parser</strong>(json) ⇒ <tt>Object</tt>
|
1155
1156
|
|
1156
1157
|
|
1157
1158
|
|
@@ -1171,7 +1172,7 @@
|
|
1171
1172
|
<pre class="code"><span class="info file"># File 'lib/prismic/json_parsers.rb', line 87</span>
|
1172
1173
|
|
1173
1174
|
<span class='kw'>def</span> <span class='id identifier rubyid_number_parser'>number_parser</span><span class='lparen'>(</span><span class='id identifier rubyid_json'>json</span><span class='rparen'>)</span>
|
1174
|
-
<span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>Number</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_json'>json</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>value</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
1175
|
+
<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="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/Number.html" title="Prismic::Fragments::Number (class)">Number</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Fragments/Number.html#initialize-instance_method" title="Prismic::Fragments::Number#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_json'>json</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>value</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
1175
1176
|
<span class='kw'>end</span></pre>
|
1176
1177
|
</td>
|
1177
1178
|
</tr>
|
@@ -1181,7 +1182,7 @@
|
|
1181
1182
|
<div class="method_details ">
|
1182
1183
|
<h3 class="signature " id="parsers-class_method">
|
1183
1184
|
|
1184
|
-
|
1185
|
+
.<strong>parsers</strong> ⇒ <tt>Object</tt>
|
1185
1186
|
|
1186
1187
|
|
1187
1188
|
|
@@ -1249,7 +1250,7 @@
|
|
1249
1250
|
<div class="method_details ">
|
1250
1251
|
<h3 class="signature " id="response_parser-class_method">
|
1251
1252
|
|
1252
|
-
|
1253
|
+
.<strong>response_parser</strong>(documents) ⇒ <tt>Object</tt>
|
1253
1254
|
|
1254
1255
|
|
1255
1256
|
|
@@ -1283,8 +1284,6 @@
|
|
1283
1284
|
<pre class="lines">
|
1284
1285
|
|
1285
1286
|
|
1286
|
-
257
|
1287
|
-
258
|
1288
1287
|
259
|
1289
1288
|
260
|
1290
1289
|
261
|
@@ -1295,14 +1294,16 @@
|
|
1295
1294
|
266
|
1296
1295
|
267
|
1297
1296
|
268
|
1298
|
-
269
|
1297
|
+
269
|
1298
|
+
270
|
1299
|
+
271</pre>
|
1299
1300
|
</td>
|
1300
1301
|
<td>
|
1301
|
-
<pre class="code"><span class="info file"># File 'lib/prismic/json_parsers.rb', line
|
1302
|
+
<pre class="code"><span class="info file"># File 'lib/prismic/json_parsers.rb', line 259</span>
|
1302
1303
|
|
1303
1304
|
<span class='kw'>def</span> <span class='id identifier rubyid_response_parser'>response_parser</span><span class='lparen'>(</span><span class='id identifier rubyid_documents'>documents</span><span class='rparen'>)</span>
|
1304
1305
|
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>FormSearchException</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Error : </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_documents'>documents</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='embexpr_end'>}</span><span class='tstring_end'>"</span></span> <span class='kw'>if</span> <span class='id identifier rubyid_documents'>documents</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>
|
1305
|
-
<span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Response</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span>
|
1306
|
+
<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="Response.html" title="Prismic::Response (class)">Response</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Response.html#initialize-instance_method" title="Prismic::Response#initialize (method)">new</a></span></span><span class='lparen'>(</span>
|
1306
1307
|
<span class='id identifier rubyid_documents'>documents</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>page</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
1307
1308
|
<span class='id identifier rubyid_documents'>documents</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>results_per_page</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
1308
1309
|
<span class='id identifier rubyid_documents'>documents</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>results_size</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
@@ -1321,7 +1322,7 @@
|
|
1321
1322
|
<div class="method_details ">
|
1322
1323
|
<h3 class="signature " id="results_parser-class_method">
|
1323
1324
|
|
1324
|
-
|
1325
|
+
.<strong>results_parser</strong>(results) ⇒ <tt>Object</tt>
|
1325
1326
|
|
1326
1327
|
|
1327
1328
|
|
@@ -1333,14 +1334,14 @@
|
|
1333
1334
|
<pre class="lines">
|
1334
1335
|
|
1335
1336
|
|
1336
|
-
251
|
1337
|
-
252
|
1338
1337
|
253
|
1339
1338
|
254
|
1340
|
-
255
|
1339
|
+
255
|
1340
|
+
256
|
1341
|
+
257</pre>
|
1341
1342
|
</td>
|
1342
1343
|
<td>
|
1343
|
-
<pre class="code"><span class="info file"># File 'lib/prismic/json_parsers.rb', line
|
1344
|
+
<pre class="code"><span class="info file"># File 'lib/prismic/json_parsers.rb', line 253</span>
|
1344
1345
|
|
1345
1346
|
<span class='kw'>def</span> <span class='id identifier rubyid_results_parser'>results_parser</span><span class='lparen'>(</span><span class='id identifier rubyid_results'>results</span><span class='rparen'>)</span>
|
1346
1347
|
<span class='id identifier rubyid_results'>results</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_doc'>doc</span><span class='op'>|</span>
|
@@ -1355,7 +1356,7 @@
|
|
1355
1356
|
<div class="method_details ">
|
1356
1357
|
<h3 class="signature " id="select_parser-class_method">
|
1357
1358
|
|
1358
|
-
|
1359
|
+
.<strong>select_parser</strong>(json) ⇒ <tt>Object</tt>
|
1359
1360
|
|
1360
1361
|
|
1361
1362
|
|
@@ -1375,7 +1376,7 @@
|
|
1375
1376
|
<pre class="code"><span class="info file"># File 'lib/prismic/json_parsers.rb', line 71</span>
|
1376
1377
|
|
1377
1378
|
<span class='kw'>def</span> <span class='id identifier rubyid_select_parser'>select_parser</span><span class='lparen'>(</span><span class='id identifier rubyid_json'>json</span><span class='rparen'>)</span>
|
1378
|
-
<span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>Text</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_json'>json</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>value</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
1379
|
+
<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="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/Text.html" title="Prismic::Fragments::Text (class)">Text</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Fragments/Text.html#initialize-instance_method" title="Prismic::Fragments::Text#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_json'>json</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>value</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
1379
1380
|
<span class='kw'>end</span></pre>
|
1380
1381
|
</td>
|
1381
1382
|
</tr>
|
@@ -1385,7 +1386,7 @@
|
|
1385
1386
|
<div class="method_details ">
|
1386
1387
|
<h3 class="signature " id="separator_parser-class_method">
|
1387
1388
|
|
1388
|
-
|
1389
|
+
.<strong>separator_parser</strong>(json) ⇒ <tt>Object</tt>
|
1389
1390
|
|
1390
1391
|
|
1391
1392
|
|
@@ -1405,7 +1406,7 @@
|
|
1405
1406
|
<pre class="code"><span class="info file"># File 'lib/prismic/json_parsers.rb', line 67</span>
|
1406
1407
|
|
1407
1408
|
<span class='kw'>def</span> <span class='id identifier rubyid_separator_parser'>separator_parser</span><span class='lparen'>(</span><span class='id identifier rubyid_json'>json</span><span class='rparen'>)</span>
|
1408
|
-
<span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>Separator</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
1409
|
+
<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="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/Separator.html" title="Prismic::Fragments::Separator (class)">Separator</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Fragments/Separator.html#initialize-instance_method" title="Prismic::Fragments::Separator#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
1409
1410
|
<span class='kw'>end</span></pre>
|
1410
1411
|
</td>
|
1411
1412
|
</tr>
|
@@ -1415,7 +1416,7 @@
|
|
1415
1416
|
<div class="method_details ">
|
1416
1417
|
<h3 class="signature " id="slices_parser-class_method">
|
1417
1418
|
|
1418
|
-
|
1419
|
+
.<strong>slices_parser</strong>(json) ⇒ <tt>Object</tt>
|
1419
1420
|
|
1420
1421
|
|
1421
1422
|
|
@@ -1441,9 +1442,9 @@
|
|
1441
1442
|
<span class='kw'>def</span> <span class='id identifier rubyid_slices_parser'>slices_parser</span><span class='lparen'>(</span><span class='id identifier rubyid_json'>json</span><span class='rparen'>)</span>
|
1442
1443
|
<span class='id identifier rubyid_slices'>slices</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
1443
1444
|
<span class='id identifier rubyid_json'>json</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>value</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_data'>data</span><span class='op'>|</span>
|
1444
|
-
<span class='id identifier rubyid_slices'>slices</span> <span class='op'><<</span> <span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>Slice</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>slice_type</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>slice_label</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_fragment_parser'>fragment_parser</span><span class='lparen'>(</span><span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>value</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
1445
|
+
<span class='id identifier rubyid_slices'>slices</span> <span class='op'><<</span> <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="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/Slice.html" title="Prismic::Fragments::Slice (class)">Slice</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Fragments/Slice.html#initialize-instance_method" title="Prismic::Fragments::Slice#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>slice_type</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>slice_label</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_fragment_parser'>fragment_parser</span><span class='lparen'>(</span><span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>value</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
1445
1446
|
<span class='kw'>end</span>
|
1446
|
-
<span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>SliceZone</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_slices'>slices</span><span class='rparen'>)</span>
|
1447
|
+
<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="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/SliceZone.html" title="Prismic::Fragments::SliceZone (class)">SliceZone</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Fragments/SliceZone.html#initialize-instance_method" title="Prismic::Fragments::SliceZone#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_slices'>slices</span><span class='rparen'>)</span>
|
1447
1448
|
<span class='kw'>end</span></pre>
|
1448
1449
|
</td>
|
1449
1450
|
</tr>
|
@@ -1453,7 +1454,7 @@
|
|
1453
1454
|
<div class="method_details ">
|
1454
1455
|
<h3 class="signature " id="span_parser-class_method">
|
1455
1456
|
|
1456
|
-
|
1457
|
+
.<strong>span_parser</strong>(span) ⇒ <tt>Object</tt>
|
1457
1458
|
|
1458
1459
|
|
1459
1460
|
|
@@ -1485,14 +1486,14 @@
|
|
1485
1486
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_span_parser'>span_parser</span><span class='lparen'>(</span><span class='id identifier rubyid_span'>span</span><span class='rparen'>)</span>
|
1486
1487
|
<span class='kw'>case</span> <span class='id identifier rubyid_span'>span</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>type</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
1487
1488
|
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>em</span><span class='tstring_end'>'</span></span>
|
1488
|
-
<span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>StructuredText</span><span class='op'>::</span><span class='const'>Span</span><span class='op'>::</span><span class='const'>Em</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_span'>span</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>start</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_span'>span</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>end</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
1489
|
+
<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="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText.html" title="Prismic::Fragments::StructuredText (class)">StructuredText</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText/Span.html" title="Prismic::Fragments::StructuredText::Span (class)">Span</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText/Span/Em.html" title="Prismic::Fragments::StructuredText::Span::Em (class)">Em</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Fragments/StructuredText/Span.html#initialize-instance_method" title="Prismic::Fragments::StructuredText::Span#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_span'>span</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>start</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_span'>span</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>end</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
1489
1490
|
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>strong</span><span class='tstring_end'>'</span></span>
|
1490
|
-
<span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>StructuredText</span><span class='op'>::</span><span class='const'>Span</span><span class='op'>::</span><span class='const'>Strong</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_span'>span</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>start</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_span'>span</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>end</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
1491
|
+
<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="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText.html" title="Prismic::Fragments::StructuredText (class)">StructuredText</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText/Span.html" title="Prismic::Fragments::StructuredText::Span (class)">Span</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText/Span/Strong.html" title="Prismic::Fragments::StructuredText::Span::Strong (class)">Strong</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Fragments/StructuredText/Span.html#initialize-instance_method" title="Prismic::Fragments::StructuredText::Span#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_span'>span</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>start</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_span'>span</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>end</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
1491
1492
|
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>hyperlink</span><span class='tstring_end'>'</span></span>
|
1492
|
-
<span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>StructuredText</span><span class='op'>::</span><span class='const'>Span</span><span class='op'>::</span><span class='const'>Hyperlink</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_span'>span</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>start</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_span'>span</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>end</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_link_parser'>link_parser</span><span class='lparen'>(</span><span class='id identifier rubyid_span'>span</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>data</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
1493
|
+
<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="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText.html" title="Prismic::Fragments::StructuredText (class)">StructuredText</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText/Span.html" title="Prismic::Fragments::StructuredText::Span (class)">Span</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText/Span/Hyperlink.html" title="Prismic::Fragments::StructuredText::Span::Hyperlink (class)">Hyperlink</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Fragments/StructuredText/Span/Hyperlink.html#initialize-instance_method" title="Prismic::Fragments::StructuredText::Span::Hyperlink#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_span'>span</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>start</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_span'>span</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>end</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_link_parser'>link_parser</span><span class='lparen'>(</span><span class='id identifier rubyid_span'>span</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>data</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
1493
1494
|
<span class='kw'>else</span>
|
1494
1495
|
<span class='id identifier rubyid_label'>label</span> <span class='op'>=</span> <span class='id identifier rubyid_span'>span</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>data</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>&&</span> <span class='id identifier rubyid_span'>span</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>data</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>label</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
1495
|
-
<span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>StructuredText</span><span class='op'>::</span><span class='const'>Span</span><span class='op'>::</span><span class='const'>Label</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_span'>span</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>start</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_span'>span</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>end</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_label'>label</span><span class='rparen'>)</span>
|
1496
|
+
<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="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText.html" title="Prismic::Fragments::StructuredText (class)">StructuredText</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText/Span.html" title="Prismic::Fragments::StructuredText::Span (class)">Span</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText/Span/Label.html" title="Prismic::Fragments::StructuredText::Span::Label (class)">Label</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Fragments/StructuredText/Span/Label.html#initialize-instance_method" title="Prismic::Fragments::StructuredText::Span::Label#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_span'>span</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>start</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_span'>span</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>end</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_label'>label</span><span class='rparen'>)</span>
|
1496
1497
|
<span class='kw'>end</span>
|
1497
1498
|
<span class='kw'>end</span></pre>
|
1498
1499
|
</td>
|
@@ -1503,7 +1504,7 @@
|
|
1503
1504
|
<div class="method_details ">
|
1504
1505
|
<h3 class="signature " id="structured_text_parser-class_method">
|
1505
1506
|
|
1506
|
-
|
1507
|
+
.<strong>structured_text_parser</strong>(json) ⇒ <tt>Object</tt>
|
1507
1508
|
|
1508
1509
|
|
1509
1510
|
|
@@ -1591,14 +1592,14 @@
|
|
1591
1592
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_span_parser'>span_parser</span><span class='lparen'>(</span><span class='id identifier rubyid_span'>span</span><span class='rparen'>)</span>
|
1592
1593
|
<span class='kw'>case</span> <span class='id identifier rubyid_span'>span</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>type</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
1593
1594
|
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>em</span><span class='tstring_end'>'</span></span>
|
1594
|
-
<span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>StructuredText</span><span class='op'>::</span><span class='const'>Span</span><span class='op'>::</span><span class='const'>Em</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_span'>span</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>start</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_span'>span</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>end</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
1595
|
+
<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="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText.html" title="Prismic::Fragments::StructuredText (class)">StructuredText</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText/Span.html" title="Prismic::Fragments::StructuredText::Span (class)">Span</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText/Span/Em.html" title="Prismic::Fragments::StructuredText::Span::Em (class)">Em</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Fragments/StructuredText/Span.html#initialize-instance_method" title="Prismic::Fragments::StructuredText::Span#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_span'>span</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>start</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_span'>span</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>end</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
1595
1596
|
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>strong</span><span class='tstring_end'>'</span></span>
|
1596
|
-
<span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>StructuredText</span><span class='op'>::</span><span class='const'>Span</span><span class='op'>::</span><span class='const'>Strong</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_span'>span</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>start</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_span'>span</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>end</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
1597
|
+
<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="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText.html" title="Prismic::Fragments::StructuredText (class)">StructuredText</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText/Span.html" title="Prismic::Fragments::StructuredText::Span (class)">Span</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText/Span/Strong.html" title="Prismic::Fragments::StructuredText::Span::Strong (class)">Strong</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Fragments/StructuredText/Span.html#initialize-instance_method" title="Prismic::Fragments::StructuredText::Span#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_span'>span</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>start</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_span'>span</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>end</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
1597
1598
|
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>hyperlink</span><span class='tstring_end'>'</span></span>
|
1598
|
-
<span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>StructuredText</span><span class='op'>::</span><span class='const'>Span</span><span class='op'>::</span><span class='const'>Hyperlink</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_span'>span</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>start</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_span'>span</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>end</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_link_parser'>link_parser</span><span class='lparen'>(</span><span class='id identifier rubyid_span'>span</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>data</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
1599
|
+
<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="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText.html" title="Prismic::Fragments::StructuredText (class)">StructuredText</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText/Span.html" title="Prismic::Fragments::StructuredText::Span (class)">Span</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText/Span/Hyperlink.html" title="Prismic::Fragments::StructuredText::Span::Hyperlink (class)">Hyperlink</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Fragments/StructuredText/Span/Hyperlink.html#initialize-instance_method" title="Prismic::Fragments::StructuredText::Span::Hyperlink#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_span'>span</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>start</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_span'>span</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>end</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_link_parser'>link_parser</span><span class='lparen'>(</span><span class='id identifier rubyid_span'>span</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>data</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
1599
1600
|
<span class='kw'>else</span>
|
1600
1601
|
<span class='id identifier rubyid_label'>label</span> <span class='op'>=</span> <span class='id identifier rubyid_span'>span</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>data</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>&&</span> <span class='id identifier rubyid_span'>span</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>data</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>label</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
1601
|
-
<span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>StructuredText</span><span class='op'>::</span><span class='const'>Span</span><span class='op'>::</span><span class='const'>Label</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_span'>span</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>start</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_span'>span</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>end</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_label'>label</span><span class='rparen'>)</span>
|
1602
|
+
<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="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText.html" title="Prismic::Fragments::StructuredText (class)">StructuredText</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText/Span.html" title="Prismic::Fragments::StructuredText::Span (class)">Span</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText/Span/Label.html" title="Prismic::Fragments::StructuredText::Span::Label (class)">Label</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Fragments/StructuredText/Span/Label.html#initialize-instance_method" title="Prismic::Fragments::StructuredText::Span::Label#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_span'>span</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>start</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_span'>span</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>end</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_label'>label</span><span class='rparen'>)</span>
|
1602
1603
|
<span class='kw'>end</span>
|
1603
1604
|
<span class='kw'>end</span>
|
1604
1605
|
|
@@ -1606,14 +1607,14 @@
|
|
1606
1607
|
<span class='kw'>case</span> <span class='id identifier rubyid_block'>block</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>type</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
1607
1608
|
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>paragraph</span><span class='tstring_end'>'</span></span>
|
1608
1609
|
<span class='id identifier rubyid_spans'>spans</span> <span class='op'>=</span> <span class='id identifier rubyid_block'>block</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>spans</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</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_span'>span</span><span class='op'>|</span> <span class='id identifier rubyid_span_parser'>span_parser</span><span class='lparen'>(</span><span class='id identifier rubyid_span'>span</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
|
1609
|
-
<span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>StructuredText</span><span class='op'>::</span><span class='const'>Block</span><span class='op'>::</span><span class='const'>Paragraph</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_block'>block</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>text</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_spans'>spans</span><span class='comma'>,</span> <span class='id identifier rubyid_block'>block</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>label</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
1610
|
+
<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="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText.html" title="Prismic::Fragments::StructuredText (class)">StructuredText</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText/Block.html" title="Prismic::Fragments::StructuredText::Block (class)">Block</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText/Block/Paragraph.html" title="Prismic::Fragments::StructuredText::Block::Paragraph (class)">Paragraph</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Fragments/StructuredText/Block/Text.html#initialize-instance_method" title="Prismic::Fragments::StructuredText::Block::Text#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_block'>block</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>text</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_spans'>spans</span><span class='comma'>,</span> <span class='id identifier rubyid_block'>block</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>label</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
1610
1611
|
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>preformatted</span><span class='tstring_end'>'</span></span>
|
1611
1612
|
<span class='id identifier rubyid_spans'>spans</span> <span class='op'>=</span> <span class='id identifier rubyid_block'>block</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>spans</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</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_span'>span</span><span class='op'>|</span> <span class='id identifier rubyid_span_parser'>span_parser</span><span class='lparen'>(</span><span class='id identifier rubyid_span'>span</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
|
1612
|
-
<span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>StructuredText</span><span class='op'>::</span><span class='const'>Block</span><span class='op'>::</span><span class='const'>Preformatted</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_block'>block</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>text</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_spans'>spans</span><span class='comma'>,</span> <span class='id identifier rubyid_block'>block</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>label</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
1613
|
+
<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="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText.html" title="Prismic::Fragments::StructuredText (class)">StructuredText</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText/Block.html" title="Prismic::Fragments::StructuredText::Block (class)">Block</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText/Block/Preformatted.html" title="Prismic::Fragments::StructuredText::Block::Preformatted (class)">Preformatted</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Fragments/StructuredText/Block/Text.html#initialize-instance_method" title="Prismic::Fragments::StructuredText::Block::Text#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_block'>block</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>text</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_spans'>spans</span><span class='comma'>,</span> <span class='id identifier rubyid_block'>block</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>label</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
1613
1614
|
<span class='kw'>when</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^heading(\d+)$</span><span class='regexp_end'>/</span></span>
|
1614
1615
|
<span class='id identifier rubyid_heading'>heading</span> <span class='op'>=</span> <span class='backref'>$1</span>
|
1615
1616
|
<span class='id identifier rubyid_spans'>spans</span> <span class='op'>=</span> <span class='id identifier rubyid_block'>block</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>spans</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</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_span'>span</span><span class='op'>|</span> <span class='id identifier rubyid_span_parser'>span_parser</span><span class='lparen'>(</span><span class='id identifier rubyid_span'>span</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
|
1616
|
-
<span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>StructuredText</span><span class='op'>::</span><span class='const'>Block</span><span class='op'>::</span><span class='const'>Heading</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span>
|
1617
|
+
<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="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText.html" title="Prismic::Fragments::StructuredText (class)">StructuredText</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText/Block.html" title="Prismic::Fragments::StructuredText::Block (class)">Block</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText/Block/Heading.html" title="Prismic::Fragments::StructuredText::Block::Heading (class)">Heading</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Fragments/StructuredText/Block/Heading.html#initialize-instance_method" title="Prismic::Fragments::StructuredText::Block::Heading#initialize (method)">new</a></span></span><span class='lparen'>(</span>
|
1617
1618
|
<span class='id identifier rubyid_block'>block</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>text</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
1618
1619
|
<span class='id identifier rubyid_spans'>spans</span><span class='comma'>,</span>
|
1619
1620
|
<span class='id identifier rubyid_heading'>heading</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span><span class='comma'>,</span>
|
@@ -1621,7 +1622,7 @@
|
|
1621
1622
|
<span class='rparen'>)</span>
|
1622
1623
|
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>o-list-item</span><span class='tstring_end'>'</span></span>
|
1623
1624
|
<span class='id identifier rubyid_spans'>spans</span> <span class='op'>=</span> <span class='id identifier rubyid_block'>block</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>spans</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</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_span'>span</span><span class='op'>|</span> <span class='id identifier rubyid_span_parser'>span_parser</span><span class='lparen'>(</span><span class='id identifier rubyid_span'>span</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
|
1624
|
-
<span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>StructuredText</span><span class='op'>::</span><span class='const'>Block</span><span class='op'>::</span><span class='const'>ListItem</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span>
|
1625
|
+
<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="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText.html" title="Prismic::Fragments::StructuredText (class)">StructuredText</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText/Block.html" title="Prismic::Fragments::StructuredText::Block (class)">Block</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText/Block/ListItem.html" title="Prismic::Fragments::StructuredText::Block::ListItem (class)">ListItem</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Fragments/StructuredText/Block/ListItem.html#initialize-instance_method" title="Prismic::Fragments::StructuredText::Block::ListItem#initialize (method)">new</a></span></span><span class='lparen'>(</span>
|
1625
1626
|
<span class='id identifier rubyid_block'>block</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>text</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
1626
1627
|
<span class='id identifier rubyid_spans'>spans</span><span class='comma'>,</span>
|
1627
1628
|
<span class='kw'>true</span><span class='comma'>,</span> <span class='comment'># ordered
|
@@ -1629,20 +1630,20 @@
|
|
1629
1630
|
<span class='rparen'>)</span>
|
1630
1631
|
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>list-item</span><span class='tstring_end'>'</span></span>
|
1631
1632
|
<span class='id identifier rubyid_spans'>spans</span> <span class='op'>=</span> <span class='id identifier rubyid_block'>block</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>spans</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</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_span'>span</span><span class='op'>|</span> <span class='id identifier rubyid_span_parser'>span_parser</span><span class='lparen'>(</span><span class='id identifier rubyid_span'>span</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
|
1632
|
-
<span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>StructuredText</span><span class='op'>::</span><span class='const'>Block</span><span class='op'>::</span><span class='const'>ListItem</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span>
|
1633
|
+
<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="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText.html" title="Prismic::Fragments::StructuredText (class)">StructuredText</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText/Block.html" title="Prismic::Fragments::StructuredText::Block (class)">Block</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText/Block/ListItem.html" title="Prismic::Fragments::StructuredText::Block::ListItem (class)">ListItem</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Fragments/StructuredText/Block/ListItem.html#initialize-instance_method" title="Prismic::Fragments::StructuredText::Block::ListItem#initialize (method)">new</a></span></span><span class='lparen'>(</span>
|
1633
1634
|
<span class='id identifier rubyid_block'>block</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>text</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
1634
1635
|
<span class='id identifier rubyid_spans'>spans</span><span class='comma'>,</span>
|
1635
1636
|
<span class='kw'>false</span><span class='comma'>,</span> <span class='comment'># unordered
|
1636
1637
|
</span> <span class='id identifier rubyid_block'>block</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>label</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
1637
1638
|
<span class='rparen'>)</span>
|
1638
1639
|
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>image</span><span class='tstring_end'>'</span></span>
|
1639
|
-
<span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>StructuredText</span><span class='op'>::</span><span class='const'>Block</span><span class='op'>::</span><span class='const'>Image</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span>
|
1640
|
+
<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="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText.html" title="Prismic::Fragments::StructuredText (class)">StructuredText</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText/Block.html" title="Prismic::Fragments::StructuredText::Block (class)">Block</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText/Block/Image.html" title="Prismic::Fragments::StructuredText::Block::Image (class)">Image</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Fragments/StructuredText/Block/Image.html#initialize-instance_method" title="Prismic::Fragments::StructuredText::Block::Image#initialize (method)">new</a></span></span><span class='lparen'>(</span>
|
1640
1641
|
<span class='id identifier rubyid_view_parser'>view_parser</span><span class='lparen'>(</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span><span class='comma'>,</span>
|
1641
1642
|
<span class='id identifier rubyid_block'>block</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>label</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
1642
1643
|
<span class='rparen'>)</span>
|
1643
1644
|
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>embed</span><span class='tstring_end'>'</span></span>
|
1644
1645
|
<span class='id identifier rubyid_boembed'>boembed</span> <span class='op'>=</span> <span class='id identifier rubyid_block'>block</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>oembed</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
1645
|
-
<span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>Embed</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span>
|
1646
|
+
<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="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/Embed.html" title="Prismic::Fragments::Embed (class)">Embed</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Fragments/Embed.html#initialize-instance_method" title="Prismic::Fragments::Embed#initialize (method)">new</a></span></span><span class='lparen'>(</span>
|
1646
1647
|
<span class='id identifier rubyid_boembed'>boembed</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>type</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
1647
1648
|
<span class='id identifier rubyid_boembed'>boembed</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>provider_name</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
1648
1649
|
<span class='id identifier rubyid_boembed'>boembed</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>provider_url</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
@@ -1653,7 +1654,7 @@
|
|
1653
1654
|
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Unknown bloc type: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_block'>block</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>type</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
1654
1655
|
<span class='kw'>end</span>
|
1655
1656
|
<span class='kw'>end</span>
|
1656
|
-
<span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>StructuredText</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_blocks'>blocks</span><span class='rparen'>)</span>
|
1657
|
+
<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="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText.html" title="Prismic::Fragments::StructuredText (class)">StructuredText</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Fragments/StructuredText.html#initialize-instance_method" title="Prismic::Fragments::StructuredText#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_blocks'>blocks</span><span class='rparen'>)</span>
|
1657
1658
|
<span class='kw'>end</span></pre>
|
1658
1659
|
</td>
|
1659
1660
|
</tr>
|
@@ -1663,7 +1664,7 @@
|
|
1663
1664
|
<div class="method_details ">
|
1664
1665
|
<h3 class="signature " id="text_parser-class_method">
|
1665
1666
|
|
1666
|
-
|
1667
|
+
.<strong>text_parser</strong>(json) ⇒ <tt>Object</tt>
|
1667
1668
|
|
1668
1669
|
|
1669
1670
|
|
@@ -1683,7 +1684,7 @@
|
|
1683
1684
|
<pre class="code"><span class="info file"># File 'lib/prismic/json_parsers.rb', line 63</span>
|
1684
1685
|
|
1685
1686
|
<span class='kw'>def</span> <span class='id identifier rubyid_text_parser'>text_parser</span><span class='lparen'>(</span><span class='id identifier rubyid_json'>json</span><span class='rparen'>)</span>
|
1686
|
-
<span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>Text</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_json'>json</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>value</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
1687
|
+
<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="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/Text.html" title="Prismic::Fragments::Text (class)">Text</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Fragments/Text.html#initialize-instance_method" title="Prismic::Fragments::Text#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_json'>json</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>value</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
1687
1688
|
<span class='kw'>end</span></pre>
|
1688
1689
|
</td>
|
1689
1690
|
</tr>
|
@@ -1693,7 +1694,7 @@
|
|
1693
1694
|
<div class="method_details ">
|
1694
1695
|
<h3 class="signature " id="timestamp_parser-class_method">
|
1695
1696
|
|
1696
|
-
|
1697
|
+
.<strong>timestamp_parser</strong>(json) ⇒ <tt>Object</tt>
|
1697
1698
|
|
1698
1699
|
|
1699
1700
|
|
@@ -1713,7 +1714,7 @@
|
|
1713
1714
|
<pre class="code"><span class="info file"># File 'lib/prismic/json_parsers.rb', line 83</span>
|
1714
1715
|
|
1715
1716
|
<span class='kw'>def</span> <span class='id identifier rubyid_timestamp_parser'>timestamp_parser</span><span class='lparen'>(</span><span class='id identifier rubyid_json'>json</span><span class='rparen'>)</span>
|
1716
|
-
<span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>Timestamp</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='id identifier rubyid_json'>json</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>value</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
1717
|
+
<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="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/Timestamp.html" title="Prismic::Fragments::Timestamp (class)">Timestamp</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Fragments/Timestamp.html#initialize-instance_method" title="Prismic::Fragments::Timestamp#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='id identifier rubyid_json'>json</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>value</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
1717
1718
|
<span class='kw'>end</span></pre>
|
1718
1719
|
</td>
|
1719
1720
|
</tr>
|
@@ -1723,7 +1724,7 @@
|
|
1723
1724
|
<div class="method_details ">
|
1724
1725
|
<h3 class="signature " id="web_link_parser-class_method">
|
1725
1726
|
|
1726
|
-
|
1727
|
+
.<strong>web_link_parser</strong>(json) ⇒ <tt>Object</tt>
|
1727
1728
|
|
1728
1729
|
|
1729
1730
|
|
@@ -1743,7 +1744,7 @@
|
|
1743
1744
|
<pre class="code"><span class="info file"># File 'lib/prismic/json_parsers.rb', line 75</span>
|
1744
1745
|
|
1745
1746
|
<span class='kw'>def</span> <span class='id identifier rubyid_web_link_parser'>web_link_parser</span><span class='lparen'>(</span><span class='id identifier rubyid_json'>json</span><span class='rparen'>)</span>
|
1746
|
-
<span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>WebLink</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_json'>json</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>value</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>url</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
1747
|
+
<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="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/WebLink.html" title="Prismic::Fragments::WebLink (class)">WebLink</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Fragments/WebLink.html#initialize-instance_method" title="Prismic::Fragments::WebLink#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_json'>json</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>value</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>url</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
1747
1748
|
<span class='kw'>end</span></pre>
|
1748
1749
|
</td>
|
1749
1750
|
</tr>
|
@@ -1754,11 +1755,12 @@
|
|
1754
1755
|
|
1755
1756
|
</div>
|
1756
1757
|
|
1757
|
-
|
1758
|
-
Generated on
|
1758
|
+
<div id="footer">
|
1759
|
+
Generated on Mon Jan 16 16:05:08 2017 by
|
1759
1760
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1760
|
-
0.8
|
1761
|
+
0.9.8 (ruby-2.3.1).
|
1761
1762
|
</div>
|
1762
1763
|
|
1764
|
+
</div>
|
1763
1765
|
</body>
|
1764
1766
|
</html>
|