prismic.io 1.4.3 → 1.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 92010b57fef6774baa33c8bc5ee750ccf9956959
|
|
4
|
+
data.tar.gz: 3c86d59c61864927b2d9e4071d8edf1da4ad8984
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d8ec2e3463462aff127aa0eba4aa799ad22217ca69959914593c9cbb299c1054b89b406d7d57df47d851073b7027155e278828640fb123c8ae96f3cb73542845
|
|
7
|
+
data.tar.gz: 37349a7dc21a804b19f0cede0ca3fa12f2d885b4277c0d01cb5ed890d84ec144328b41f181a56f54c431161ed5aed1295c32b1d5bb8f4a3054dd82bd18a67593
|
data/Gemfile.lock
CHANGED
|
@@ -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::BadPrismicResponseError
|
|
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::BadPrismicResponseError";
|
|
19
19
|
relpath = '../../';
|
|
20
|
-
framesUrl = "../../frames.html#!Prismic/API/BadPrismicResponseError.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 (B)</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">BadPrismicResponseError</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::BadPrismicResponseError
|
|
62
|
+
<div id="content"><h1>Exception: Prismic::API::BadPrismicResponseError
|
|
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>
|
|
92
88
|
|
|
89
|
+
|
|
93
90
|
|
|
94
|
-
|
|
95
91
|
|
|
96
|
-
|
|
97
92
|
|
|
98
93
|
|
|
99
94
|
|
|
100
|
-
|
|
101
|
-
<dd class="r2 last">lib/prismic/api.rb</dd>
|
|
95
|
+
|
|
102
96
|
|
|
103
|
-
|
|
104
|
-
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
<dl>
|
|
100
|
+
<dt>Defined in:</dt>
|
|
101
|
+
<dd>lib/prismic/api.rb</dd>
|
|
102
|
+
</dl>
|
|
103
|
+
|
|
104
|
+
</div>
|
|
105
105
|
|
|
106
106
|
|
|
107
107
|
|
|
@@ -137,11 +137,12 @@
|
|
|
137
137
|
|
|
138
138
|
</div>
|
|
139
139
|
|
|
140
|
-
|
|
141
|
-
Generated on
|
|
140
|
+
<div id="footer">
|
|
141
|
+
Generated on Mon Jan 16 16:05:09 2017 by
|
|
142
142
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
143
|
-
0.8
|
|
143
|
+
0.9.8 (ruby-2.3.1).
|
|
144
144
|
</div>
|
|
145
145
|
|
|
146
|
+
</div>
|
|
146
147
|
</body>
|
|
147
148
|
</html>
|
data/docs/Prismic/API/OAuth.html
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
<!DOCTYPE html
|
|
2
|
-
|
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
4
3
|
<head>
|
|
5
|
-
<meta
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
6
|
<title>
|
|
7
7
|
Class: Prismic::API::OAuth
|
|
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::OAuth";
|
|
19
19
|
relpath = '../../';
|
|
20
|
-
framesUrl = "../../frames.html#!Prismic/API/OAuth.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 (O)</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">OAuth</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
|
-
|
|
63
|
-
|
|
64
|
-
<iframe id="search_frame"></iframe>
|
|
59
|
+
<div class="clear"></div>
|
|
60
|
+
</div>
|
|
65
61
|
|
|
66
|
-
|
|
62
|
+
<div id="content"><h1>Class: Prismic::API::OAuth
|
|
67
63
|
|
|
68
64
|
|
|
69
65
|
|
|
70
66
|
</h1>
|
|
71
|
-
|
|
72
|
-
<dl class="box">
|
|
67
|
+
<div class="box_info">
|
|
73
68
|
|
|
74
|
-
|
|
75
|
-
<
|
|
69
|
+
<dl>
|
|
70
|
+
<dt>Inherits:</dt>
|
|
71
|
+
<dd>
|
|
76
72
|
<span class="inheritName">Object</span>
|
|
77
73
|
|
|
78
74
|
<ul class="fullTree">
|
|
@@ -83,33 +79,37 @@
|
|
|
83
79
|
</ul>
|
|
84
80
|
<a href="#" class="inheritanceTree">show all</a>
|
|
85
81
|
|
|
86
|
-
|
|
87
|
-
|
|
82
|
+
</dd>
|
|
83
|
+
</dl>
|
|
84
|
+
|
|
85
|
+
|
|
88
86
|
|
|
89
87
|
|
|
90
|
-
|
|
91
88
|
|
|
92
|
-
|
|
93
89
|
|
|
94
90
|
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
95
94
|
|
|
96
|
-
|
|
97
|
-
<
|
|
95
|
+
<dl>
|
|
96
|
+
<dt>Defined in:</dt>
|
|
97
|
+
<dd>lib/prismic/api.rb</dd>
|
|
98
|
+
</dl>
|
|
98
99
|
|
|
99
|
-
</
|
|
100
|
-
<div class="clear"></div>
|
|
100
|
+
</div>
|
|
101
101
|
|
|
102
102
|
|
|
103
103
|
|
|
104
104
|
|
|
105
105
|
|
|
106
|
-
<h2>Instance Attribute Summary <small
|
|
106
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
|
107
107
|
<ul class="summary">
|
|
108
108
|
|
|
109
109
|
<li class="public ">
|
|
110
110
|
<span class="summary_signature">
|
|
111
111
|
|
|
112
|
-
<a href="#http_client-instance_method" title="#http_client (instance method)"
|
|
112
|
+
<a href="#http_client-instance_method" title="#http_client (instance method)">#<strong>http_client</strong> ⇒ Object </a>
|
|
113
113
|
|
|
114
114
|
|
|
115
115
|
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
<li class="public ">
|
|
138
138
|
<span class="summary_signature">
|
|
139
139
|
|
|
140
|
-
<a href="#initiate-instance_method" title="#initiate (instance method)"
|
|
140
|
+
<a href="#initiate-instance_method" title="#initiate (instance method)">#<strong>initiate</strong> ⇒ Object </a>
|
|
141
141
|
|
|
142
142
|
|
|
143
143
|
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
<li class="public ">
|
|
166
166
|
<span class="summary_signature">
|
|
167
167
|
|
|
168
|
-
<a href="#token-instance_method" title="#token (instance method)"
|
|
168
|
+
<a href="#token-instance_method" title="#token (instance method)">#<strong>token</strong> ⇒ Object </a>
|
|
169
169
|
|
|
170
170
|
|
|
171
171
|
|
|
@@ -198,7 +198,7 @@
|
|
|
198
198
|
|
|
199
199
|
<h2>
|
|
200
200
|
Instance Method Summary
|
|
201
|
-
<small
|
|
201
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
|
202
202
|
</h2>
|
|
203
203
|
|
|
204
204
|
<ul class="summary">
|
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
<li class="public ">
|
|
207
207
|
<span class="summary_signature">
|
|
208
208
|
|
|
209
|
-
<a href="#check_token-instance_method" title="#check_token (instance method)"
|
|
209
|
+
<a href="#check_token-instance_method" title="#check_token (instance method)">#<strong>check_token</strong>(params) ⇒ Object </a>
|
|
210
210
|
|
|
211
211
|
|
|
212
212
|
|
|
@@ -228,7 +228,7 @@
|
|
|
228
228
|
<li class="public ">
|
|
229
229
|
<span class="summary_signature">
|
|
230
230
|
|
|
231
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)"
|
|
231
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(initiate, token, http_client) ⇒ OAuth </a>
|
|
232
232
|
|
|
233
233
|
|
|
234
234
|
|
|
@@ -253,7 +253,7 @@
|
|
|
253
253
|
<li class="public ">
|
|
254
254
|
<span class="summary_signature">
|
|
255
255
|
|
|
256
|
-
<a href="#initiate_url-instance_method" title="#initiate_url (instance method)"
|
|
256
|
+
<a href="#initiate_url-instance_method" title="#initiate_url (instance method)">#<strong>initiate_url</strong>(opts) ⇒ Object </a>
|
|
257
257
|
|
|
258
258
|
|
|
259
259
|
|
|
@@ -281,7 +281,7 @@
|
|
|
281
281
|
<div class="method_details first">
|
|
282
282
|
<h3 class="signature first" id="initialize-instance_method">
|
|
283
283
|
|
|
284
|
-
|
|
284
|
+
#<strong>initialize</strong>(initiate, token, http_client) ⇒ <tt><span class='object_link'><a href="" title="Prismic::API::OAuth (class)">OAuth</a></span></tt>
|
|
285
285
|
|
|
286
286
|
|
|
287
287
|
|
|
@@ -303,14 +303,14 @@
|
|
|
303
303
|
<pre class="lines">
|
|
304
304
|
|
|
305
305
|
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
306
|
+
283
|
|
307
|
+
284
|
|
308
|
+
285
|
|
309
|
+
286
|
|
310
|
+
287</pre>
|
|
311
311
|
</td>
|
|
312
312
|
<td>
|
|
313
|
-
<pre class="code"><span class="info file"># File 'lib/prismic/api.rb', line
|
|
313
|
+
<pre class="code"><span class="info file"># File 'lib/prismic/api.rb', line 283</span>
|
|
314
314
|
|
|
315
315
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_initiate'>initiate</span><span class='comma'>,</span> <span class='id identifier rubyid_token'>token</span><span class='comma'>,</span> <span class='id identifier rubyid_http_client'>http_client</span><span class='rparen'>)</span>
|
|
316
316
|
<span class='ivar'>@http_client</span> <span class='op'>=</span> <span class='id identifier rubyid_http_client'>http_client</span>
|
|
@@ -332,7 +332,7 @@
|
|
|
332
332
|
<div class="method_details first">
|
|
333
333
|
<h3 class="signature first" id="http_client-instance_method">
|
|
334
334
|
|
|
335
|
-
|
|
335
|
+
#<strong>http_client</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
|
336
336
|
|
|
337
337
|
|
|
338
338
|
|
|
@@ -354,12 +354,12 @@
|
|
|
354
354
|
<pre class="lines">
|
|
355
355
|
|
|
356
356
|
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
357
|
+
282
|
|
358
|
+
283
|
|
359
|
+
284</pre>
|
|
360
360
|
</td>
|
|
361
361
|
<td>
|
|
362
|
-
<pre class="code"><span class="info file"># File 'lib/prismic/api.rb', line
|
|
362
|
+
<pre class="code"><span class="info file"># File 'lib/prismic/api.rb', line 282</span>
|
|
363
363
|
|
|
364
364
|
<span class='kw'>def</span> <span class='id identifier rubyid_http_client'>http_client</span>
|
|
365
365
|
<span class='ivar'>@http_client</span>
|
|
@@ -374,7 +374,7 @@
|
|
|
374
374
|
<div class="method_details ">
|
|
375
375
|
<h3 class="signature " id="initiate-instance_method">
|
|
376
376
|
|
|
377
|
-
|
|
377
|
+
#<strong>initiate</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
|
378
378
|
|
|
379
379
|
|
|
380
380
|
|
|
@@ -396,12 +396,12 @@
|
|
|
396
396
|
<pre class="lines">
|
|
397
397
|
|
|
398
398
|
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
399
|
+
282
|
|
400
|
+
283
|
|
401
|
+
284</pre>
|
|
402
402
|
</td>
|
|
403
403
|
<td>
|
|
404
|
-
<pre class="code"><span class="info file"># File 'lib/prismic/api.rb', line
|
|
404
|
+
<pre class="code"><span class="info file"># File 'lib/prismic/api.rb', line 282</span>
|
|
405
405
|
|
|
406
406
|
<span class='kw'>def</span> <span class='id identifier rubyid_initiate'>initiate</span>
|
|
407
407
|
<span class='ivar'>@initiate</span>
|
|
@@ -416,7 +416,7 @@
|
|
|
416
416
|
<div class="method_details ">
|
|
417
417
|
<h3 class="signature " id="token-instance_method">
|
|
418
418
|
|
|
419
|
-
|
|
419
|
+
#<strong>token</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
|
420
420
|
|
|
421
421
|
|
|
422
422
|
|
|
@@ -438,12 +438,12 @@
|
|
|
438
438
|
<pre class="lines">
|
|
439
439
|
|
|
440
440
|
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
441
|
+
282
|
|
442
|
+
283
|
|
443
|
+
284</pre>
|
|
444
444
|
</td>
|
|
445
445
|
<td>
|
|
446
|
-
<pre class="code"><span class="info file"># File 'lib/prismic/api.rb', line
|
|
446
|
+
<pre class="code"><span class="info file"># File 'lib/prismic/api.rb', line 282</span>
|
|
447
447
|
|
|
448
448
|
<span class='kw'>def</span> <span class='id identifier rubyid_token'>token</span>
|
|
449
449
|
<span class='ivar'>@token</span>
|
|
@@ -463,7 +463,7 @@
|
|
|
463
463
|
<div class="method_details first">
|
|
464
464
|
<h3 class="signature first" id="check_token-instance_method">
|
|
465
465
|
|
|
466
|
-
|
|
466
|
+
#<strong>check_token</strong>(params) ⇒ <tt>Object</tt>
|
|
467
467
|
|
|
468
468
|
|
|
469
469
|
|
|
@@ -475,21 +475,21 @@
|
|
|
475
475
|
<pre class="lines">
|
|
476
476
|
|
|
477
477
|
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
478
|
+
295
|
|
479
|
+
296
|
|
480
|
+
297
|
|
481
|
+
298
|
|
482
|
+
299
|
|
483
|
+
300
|
|
484
|
+
301
|
|
485
|
+
302
|
|
486
|
+
303
|
|
487
|
+
304
|
|
488
|
+
305
|
|
489
|
+
306</pre>
|
|
490
490
|
</td>
|
|
491
491
|
<td>
|
|
492
|
-
<pre class="code"><span class="info file"># File 'lib/prismic/api.rb', line
|
|
492
|
+
<pre class="code"><span class="info file"># File 'lib/prismic/api.rb', line 295</span>
|
|
493
493
|
|
|
494
494
|
<span class='kw'>def</span> <span class='id identifier rubyid_check_token'>check_token</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='rparen'>)</span>
|
|
495
495
|
<span class='id identifier rubyid_res'>res</span> <span class='op'>=</span> <span class='id identifier rubyid_http_client'>http_client</span><span class='period'>.</span><span class='id identifier rubyid_post'>post</span><span class='lparen'>(</span><span class='id identifier rubyid_token'>token</span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span><span class='rparen'>)</span>
|
|
@@ -497,10 +497,10 @@
|
|
|
497
497
|
<span class='kw'>begin</span>
|
|
498
498
|
<span class='const'>JSON</span><span class='period'>.</span><span class='id identifier rubyid_load'>load</span><span class='lparen'>(</span><span class='id identifier rubyid_res'>res</span><span class='period'>.</span><span class='id identifier rubyid_body'>body</span><span class='rparen'>)</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>access_token</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
|
499
499
|
<span class='kw'>rescue</span> <span class='const'>Exception</span> <span class='op'>=></span> <span class='id identifier rubyid_e'>e</span>
|
|
500
|
-
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>PrismicWSConnectionError</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_res'>res</span><span class='comma'>,</span> <span class='id identifier rubyid_e'>e</span><span class='rparen'>)</span>
|
|
500
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="PrismicWSConnectionError.html" title="Prismic::API::PrismicWSConnectionError (class)">PrismicWSConnectionError</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="PrismicWSConnectionError.html#initialize-instance_method" title="Prismic::API::PrismicWSConnectionError#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_res'>res</span><span class='comma'>,</span> <span class='id identifier rubyid_e'>e</span><span class='rparen'>)</span>
|
|
501
501
|
<span class='kw'>end</span>
|
|
502
502
|
<span class='kw'>else</span>
|
|
503
|
-
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>PrismicWSConnectionError</span><span class='comma'>,</span> <span class='id identifier rubyid_res'>res</span>
|
|
503
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="PrismicWSConnectionError.html" title="Prismic::API::PrismicWSConnectionError (class)">PrismicWSConnectionError</a></span></span><span class='comma'>,</span> <span class='id identifier rubyid_res'>res</span>
|
|
504
504
|
<span class='kw'>end</span>
|
|
505
505
|
<span class='kw'>end</span></pre>
|
|
506
506
|
</td>
|
|
@@ -511,7 +511,7 @@
|
|
|
511
511
|
<div class="method_details ">
|
|
512
512
|
<h3 class="signature " id="initiate_url-instance_method">
|
|
513
513
|
|
|
514
|
-
|
|
514
|
+
#<strong>initiate_url</strong>(opts) ⇒ <tt>Object</tt>
|
|
515
515
|
|
|
516
516
|
|
|
517
517
|
|
|
@@ -523,16 +523,16 @@
|
|
|
523
523
|
<pre class="lines">
|
|
524
524
|
|
|
525
525
|
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
526
|
+
288
|
|
527
|
+
289
|
|
528
|
+
290
|
|
529
|
+
291
|
|
530
|
+
292
|
|
531
|
+
293
|
|
532
|
+
294</pre>
|
|
533
533
|
</td>
|
|
534
534
|
<td>
|
|
535
|
-
<pre class="code"><span class="info file"># File 'lib/prismic/api.rb', line
|
|
535
|
+
<pre class="code"><span class="info file"># File 'lib/prismic/api.rb', line 288</span>
|
|
536
536
|
|
|
537
537
|
<span class='kw'>def</span> <span class='id identifier rubyid_initiate_url'>initiate_url</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span>
|
|
538
538
|
<span class='id identifier rubyid_initiate'>initiate</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>?</span><span class='tstring_end'>'</span></span> <span class='op'>+</span> <span class='lbrace'>{</span>
|
|
@@ -550,11 +550,12 @@
|
|
|
550
550
|
|
|
551
551
|
</div>
|
|
552
552
|
|
|
553
|
-
|
|
554
|
-
Generated on
|
|
553
|
+
<div id="footer">
|
|
554
|
+
Generated on Mon Jan 16 16:05:09 2017 by
|
|
555
555
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
556
|
-
0.8
|
|
556
|
+
0.9.8 (ruby-2.3.1).
|
|
557
557
|
</div>
|
|
558
558
|
|
|
559
|
+
</div>
|
|
559
560
|
</body>
|
|
560
561
|
</html>
|