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
|
Exception: Prismic::API::PrismicWSAuthError
|
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::API::PrismicWSAuthError";
|
19
19
|
relpath = '../../';
|
20
|
-
framesUrl = "../../frames.html#!Prismic/API/PrismicWSAuthError.html";
|
21
20
|
</script>
|
22
21
|
|
23
22
|
|
@@ -28,51 +27,48 @@
|
|
28
27
|
|
29
28
|
</head>
|
30
29
|
<body>
|
31
|
-
<div
|
32
|
-
<
|
30
|
+
<div class="nav_wrap">
|
31
|
+
<iframe id="nav" src="../../class_list.html?1"></iframe>
|
32
|
+
<div id="resizer"></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="main" tabindex="-1">
|
36
|
+
<div id="header">
|
37
|
+
<div id="menu">
|
33
38
|
|
34
39
|
<a href="../../_index.html">Index (P)</a> »
|
35
40
|
<span class='title'><span class='object_link'><a href="../../Prismic.html" title="Prismic (module)">Prismic</a></span></span> » <span class='title'><span class='object_link'><a href="../API.html" title="Prismic::API (class)">API</a></span></span>
|
36
41
|
»
|
37
42
|
<span class="title">PrismicWSAuthError</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>Exception: Prismic::API::PrismicWSAuthError
|
62
|
+
<div id="content"><h1>Exception: Prismic::API::PrismicWSAuthError
|
67
63
|
|
68
64
|
|
69
65
|
|
70
66
|
</h1>
|
71
|
-
|
72
|
-
<dl class="box">
|
67
|
+
<div class="box_info">
|
73
68
|
|
74
|
-
|
75
|
-
<
|
69
|
+
<dl>
|
70
|
+
<dt>Inherits:</dt>
|
71
|
+
<dd>
|
76
72
|
<span class="inheritName"><span class='object_link'><a href="../Error.html" title="Prismic::Error (class)">Error</a></span></span>
|
77
73
|
|
78
74
|
<ul class="fullTree">
|
@@ -87,33 +83,37 @@
|
|
87
83
|
</ul>
|
88
84
|
<a href="#" class="inheritanceTree">show all</a>
|
89
85
|
|
90
|
-
|
91
|
-
|
86
|
+
</dd>
|
87
|
+
</dl>
|
88
|
+
|
89
|
+
|
92
90
|
|
93
91
|
|
94
|
-
|
95
92
|
|
96
|
-
|
97
93
|
|
98
94
|
|
95
|
+
|
96
|
+
|
97
|
+
|
99
98
|
|
100
|
-
|
101
|
-
<
|
99
|
+
<dl>
|
100
|
+
<dt>Defined in:</dt>
|
101
|
+
<dd>lib/prismic/api.rb</dd>
|
102
|
+
</dl>
|
102
103
|
|
103
|
-
</
|
104
|
-
<div class="clear"></div>
|
104
|
+
</div>
|
105
105
|
|
106
106
|
|
107
107
|
|
108
108
|
|
109
109
|
|
110
|
-
<h2>Instance Attribute Summary <small
|
110
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
111
111
|
<ul class="summary">
|
112
112
|
|
113
113
|
<li class="public ">
|
114
114
|
<span class="summary_signature">
|
115
115
|
|
116
|
-
<a href="#error-instance_method" title="#error (instance method)"
|
116
|
+
<a href="#error-instance_method" title="#error (instance method)">#<strong>error</strong> ⇒ Object </a>
|
117
117
|
|
118
118
|
|
119
119
|
|
@@ -141,7 +141,7 @@
|
|
141
141
|
<li class="public ">
|
142
142
|
<span class="summary_signature">
|
143
143
|
|
144
|
-
<a href="#oauth-instance_method" title="#oauth (instance method)"
|
144
|
+
<a href="#oauth-instance_method" title="#oauth (instance method)">#<strong>oauth</strong> ⇒ Object </a>
|
145
145
|
|
146
146
|
|
147
147
|
|
@@ -179,7 +179,7 @@
|
|
179
179
|
|
180
180
|
<h2>
|
181
181
|
Instance Method Summary
|
182
|
-
<small
|
182
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
183
183
|
</h2>
|
184
184
|
|
185
185
|
<ul class="summary">
|
@@ -187,7 +187,7 @@
|
|
187
187
|
<li class="public ">
|
188
188
|
<span class="summary_signature">
|
189
189
|
|
190
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)"
|
190
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(error, oauth_initialize, oauth_token, http_client) ⇒ PrismicWSAuthError </a>
|
191
191
|
|
192
192
|
|
193
193
|
|
@@ -230,7 +230,7 @@
|
|
230
230
|
<div class="method_details first">
|
231
231
|
<h3 class="signature first" id="initialize-instance_method">
|
232
232
|
|
233
|
-
|
233
|
+
#<strong>initialize</strong>(error, oauth_initialize, oauth_token, http_client) ⇒ <tt><span class='object_link'><a href="" title="Prismic::API::PrismicWSAuthError (class)">PrismicWSAuthError</a></span></tt>
|
234
234
|
|
235
235
|
|
236
236
|
|
@@ -252,19 +252,19 @@
|
|
252
252
|
<pre class="lines">
|
253
253
|
|
254
254
|
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
255
|
+
274
|
256
|
+
275
|
257
|
+
276
|
258
|
+
277
|
259
|
+
278</pre>
|
260
260
|
</td>
|
261
261
|
<td>
|
262
|
-
<pre class="code"><span class="info file"># File 'lib/prismic/api.rb', line
|
262
|
+
<pre class="code"><span class="info file"># File 'lib/prismic/api.rb', line 274</span>
|
263
263
|
|
264
264
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_error'>error</span><span class='comma'>,</span> <span class='id identifier rubyid_oauth_initialize'>oauth_initialize</span><span class='comma'>,</span> <span class='id identifier rubyid_oauth_token'>oauth_token</span><span class='comma'>,</span> <span class='id identifier rubyid_http_client'>http_client</span><span class='rparen'>)</span>
|
265
265
|
<span class='kw'>super</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Can't connect to Prismic's API: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_error'>error</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
266
266
|
<span class='ivar'>@error</span> <span class='op'>=</span> <span class='id identifier rubyid_error'>error</span>
|
267
|
-
<span class='ivar'>@oauth</span> <span class='op'>=</span> <span class='const'>OAuth</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_oauth_initialize'>oauth_initialize</span><span class='comma'>,</span> <span class='id identifier rubyid_oauth_token'>oauth_token</span><span class='comma'>,</span> <span class='id identifier rubyid_http_client'>http_client</span><span class='rparen'>)</span>
|
267
|
+
<span class='ivar'>@oauth</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="OAuth.html" title="Prismic::API::OAuth (class)">OAuth</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="OAuth.html#initialize-instance_method" title="Prismic::API::OAuth#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_oauth_initialize'>oauth_initialize</span><span class='comma'>,</span> <span class='id identifier rubyid_oauth_token'>oauth_token</span><span class='comma'>,</span> <span class='id identifier rubyid_http_client'>http_client</span><span class='rparen'>)</span>
|
268
268
|
<span class='kw'>end</span></pre>
|
269
269
|
</td>
|
270
270
|
</tr>
|
@@ -281,7 +281,7 @@
|
|
281
281
|
<div class="method_details first">
|
282
282
|
<h3 class="signature first" id="error-instance_method">
|
283
283
|
|
284
|
-
|
284
|
+
#<strong>error</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
285
285
|
|
286
286
|
|
287
287
|
|
@@ -303,12 +303,12 @@
|
|
303
303
|
<pre class="lines">
|
304
304
|
|
305
305
|
|
306
|
-
|
307
|
-
|
308
|
-
|
306
|
+
273
|
307
|
+
274
|
308
|
+
275</pre>
|
309
309
|
</td>
|
310
310
|
<td>
|
311
|
-
<pre class="code"><span class="info file"># File 'lib/prismic/api.rb', line
|
311
|
+
<pre class="code"><span class="info file"># File 'lib/prismic/api.rb', line 273</span>
|
312
312
|
|
313
313
|
<span class='kw'>def</span> <span class='id identifier rubyid_error'>error</span>
|
314
314
|
<span class='ivar'>@error</span>
|
@@ -323,7 +323,7 @@
|
|
323
323
|
<div class="method_details ">
|
324
324
|
<h3 class="signature " id="oauth-instance_method">
|
325
325
|
|
326
|
-
|
326
|
+
#<strong>oauth</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
327
327
|
|
328
328
|
|
329
329
|
|
@@ -345,12 +345,12 @@
|
|
345
345
|
<pre class="lines">
|
346
346
|
|
347
347
|
|
348
|
-
|
349
|
-
|
350
|
-
|
348
|
+
273
|
349
|
+
274
|
350
|
+
275</pre>
|
351
351
|
</td>
|
352
352
|
<td>
|
353
|
-
<pre class="code"><span class="info file"># File 'lib/prismic/api.rb', line
|
353
|
+
<pre class="code"><span class="info file"># File 'lib/prismic/api.rb', line 273</span>
|
354
354
|
|
355
355
|
<span class='kw'>def</span> <span class='id identifier rubyid_oauth'>oauth</span>
|
356
356
|
<span class='ivar'>@oauth</span>
|
@@ -365,11 +365,12 @@
|
|
365
365
|
|
366
366
|
</div>
|
367
367
|
|
368
|
-
|
369
|
-
Generated on
|
368
|
+
<div id="footer">
|
369
|
+
Generated on Mon Jan 16 16:05:09 2017 by
|
370
370
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
371
|
-
0.8
|
371
|
+
0.9.8 (ruby-2.3.1).
|
372
372
|
</div>
|
373
373
|
|
374
|
+
</div>
|
374
375
|
</body>
|
375
376
|
</html>
|
@@ -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
|
Exception: Prismic::API::PrismicWSConnectionError
|
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::API::PrismicWSConnectionError";
|
19
19
|
relpath = '../../';
|
20
|
-
framesUrl = "../../frames.html#!Prismic/API/PrismicWSConnectionError.html";
|
21
20
|
</script>
|
22
21
|
|
23
22
|
|
@@ -28,51 +27,48 @@
|
|
28
27
|
|
29
28
|
</head>
|
30
29
|
<body>
|
31
|
-
<div
|
32
|
-
<
|
30
|
+
<div class="nav_wrap">
|
31
|
+
<iframe id="nav" src="../../class_list.html?1"></iframe>
|
32
|
+
<div id="resizer"></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="main" tabindex="-1">
|
36
|
+
<div id="header">
|
37
|
+
<div id="menu">
|
33
38
|
|
34
39
|
<a href="../../_index.html">Index (P)</a> »
|
35
40
|
<span class='title'><span class='object_link'><a href="../../Prismic.html" title="Prismic (module)">Prismic</a></span></span> » <span class='title'><span class='object_link'><a href="../API.html" title="Prismic::API (class)">API</a></span></span>
|
36
41
|
»
|
37
42
|
<span class="title">PrismicWSConnectionError</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>Exception: Prismic::API::PrismicWSConnectionError
|
62
|
+
<div id="content"><h1>Exception: Prismic::API::PrismicWSConnectionError
|
67
63
|
|
68
64
|
|
69
65
|
|
70
66
|
</h1>
|
71
|
-
|
72
|
-
<dl class="box">
|
67
|
+
<div class="box_info">
|
73
68
|
|
74
|
-
|
75
|
-
<
|
69
|
+
<dl>
|
70
|
+
<dt>Inherits:</dt>
|
71
|
+
<dd>
|
76
72
|
<span class="inheritName"><span class='object_link'><a href="../Error.html" title="Prismic::Error (class)">Error</a></span></span>
|
77
73
|
|
78
74
|
<ul class="fullTree">
|
@@ -87,21 +83,25 @@
|
|
87
83
|
</ul>
|
88
84
|
<a href="#" class="inheritanceTree">show all</a>
|
89
85
|
|
90
|
-
|
91
|
-
|
86
|
+
</dd>
|
87
|
+
</dl>
|
88
|
+
|
89
|
+
|
92
90
|
|
93
91
|
|
94
|
-
|
95
92
|
|
96
|
-
|
97
93
|
|
98
94
|
|
95
|
+
|
96
|
+
|
97
|
+
|
99
98
|
|
100
|
-
|
101
|
-
<
|
99
|
+
<dl>
|
100
|
+
<dt>Defined in:</dt>
|
101
|
+
<dd>lib/prismic/api.rb</dd>
|
102
|
+
</dl>
|
102
103
|
|
103
|
-
</
|
104
|
-
<div class="clear"></div>
|
104
|
+
</div>
|
105
105
|
|
106
106
|
|
107
107
|
|
@@ -118,7 +118,7 @@
|
|
118
118
|
|
119
119
|
<h2>
|
120
120
|
Instance Method Summary
|
121
|
-
<small
|
121
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
122
122
|
</h2>
|
123
123
|
|
124
124
|
<ul class="summary">
|
@@ -126,7 +126,7 @@
|
|
126
126
|
<li class="public ">
|
127
127
|
<span class="summary_signature">
|
128
128
|
|
129
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)"
|
129
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(resp, cause = nil) ⇒ PrismicWSConnectionError </a>
|
130
130
|
|
131
131
|
|
132
132
|
|
@@ -169,7 +169,7 @@
|
|
169
169
|
<div class="method_details first">
|
170
170
|
<h3 class="signature first" id="initialize-instance_method">
|
171
171
|
|
172
|
-
|
172
|
+
#<strong>initialize</strong>(resp, cause = nil) ⇒ <tt><span class='object_link'><a href="" title="Prismic::API::PrismicWSConnectionError (class)">PrismicWSConnectionError</a></span></tt>
|
173
173
|
|
174
174
|
|
175
175
|
|
@@ -191,12 +191,12 @@
|
|
191
191
|
<pre class="lines">
|
192
192
|
|
193
193
|
|
194
|
-
|
195
|
-
|
196
|
-
|
194
|
+
267
|
195
|
+
268
|
196
|
+
269</pre>
|
197
197
|
</td>
|
198
198
|
<td>
|
199
|
-
<pre class="code"><span class="info file"># File 'lib/prismic/api.rb', line
|
199
|
+
<pre class="code"><span class="info file"># File 'lib/prismic/api.rb', line 267</span>
|
200
200
|
|
201
201
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_resp'>resp</span><span class='comma'>,</span> <span class='id identifier rubyid_cause'>cause</span><span class='op'>=</span><span class='kw'>nil</span><span class='rparen'>)</span>
|
202
202
|
<span class='kw'>super</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Can't connect to Prismic's API: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_resp'>resp</span><span class='period'>.</span><span class='id identifier rubyid_code'>code</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_resp'>resp</span><span class='period'>.</span><span class='id identifier rubyid_message'>message</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_cause'>cause</span><span class='rparen'>)</span>
|
@@ -211,11 +211,12 @@
|
|
211
211
|
|
212
212
|
</div>
|
213
213
|
|
214
|
-
|
215
|
-
Generated on
|
214
|
+
<div id="footer">
|
215
|
+
Generated on Mon Jan 16 16:05:09 2017 by
|
216
216
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
217
|
-
0.8
|
217
|
+
0.9.8 (ruby-2.3.1).
|
218
218
|
</div>
|
219
219
|
|
220
|
+
</div>
|
220
221
|
</body>
|
221
222
|
</html>
|