prismic.io 1.4.3 → 1.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/docs/Prismic/API/BadPrismicResponseError.html +44 -43
- data/docs/Prismic/API/OAuth.html +99 -98
- data/docs/Prismic/API/PrismicWSAuthError.html +67 -66
- data/docs/Prismic/API/PrismicWSConnectionError.html +51 -50
- data/docs/Prismic/API.html +434 -280
- data/docs/Prismic/BasicNullCache.html +49 -48
- data/docs/Prismic/DefaultHTTPClient.html +85 -79
- data/docs/Prismic/Document.html +279 -83
- data/docs/Prismic/Error.html +52 -51
- data/docs/Prismic/Experiment.html +60 -59
- data/docs/Prismic/Experiments.html +61 -60
- data/docs/Prismic/Field.html +54 -53
- data/docs/Prismic/Form.html +70 -69
- data/docs/Prismic/Fragments/Color.html +60 -59
- data/docs/Prismic/Fragments/Date.html +52 -51
- data/docs/Prismic/Fragments/DocumentLink.html +78 -76
- data/docs/Prismic/Fragments/Embed.html +60 -59
- data/docs/Prismic/Fragments/FileLink.html +58 -57
- data/docs/Prismic/Fragments/Fragment.html +49 -48
- data/docs/Prismic/Fragments/GeoPoint.html +54 -53
- data/docs/Prismic/Fragments/Group.html +65 -63
- data/docs/Prismic/Fragments/GroupDocument.html +57 -55
- data/docs/Prismic/Fragments/Image/View.html +64 -63
- data/docs/Prismic/Fragments/Image/ViewDoesNotExistException.html +44 -43
- data/docs/Prismic/Fragments/Image.html +69 -68
- data/docs/Prismic/Fragments/ImageLink.html +50 -49
- data/docs/Prismic/Fragments/Link.html +53 -52
- data/docs/Prismic/Fragments/Multiple.html +58 -57
- data/docs/Prismic/Fragments/Number.html +54 -53
- data/docs/Prismic/Fragments/Select.html +52 -51
- data/docs/Prismic/Fragments/Separator.html +54 -53
- data/docs/Prismic/Fragments/Slice.html +58 -57
- data/docs/Prismic/Fragments/SliceZone.html +54 -53
- data/docs/Prismic/Fragments/StructuredText/Block/Embed.html +52 -51
- data/docs/Prismic/Fragments/StructuredText/Block/Heading.html +52 -51
- data/docs/Prismic/Fragments/StructuredText/Block/Image.html +66 -65
- data/docs/Prismic/Fragments/StructuredText/Block/ListItem.html +52 -51
- data/docs/Prismic/Fragments/StructuredText/Block/Paragraph.html +47 -46
- data/docs/Prismic/Fragments/StructuredText/Block/Preformatted.html +47 -46
- data/docs/Prismic/Fragments/StructuredText/Block/Text.html +68 -64
- data/docs/Prismic/Fragments/StructuredText/Block.html +47 -46
- data/docs/Prismic/Fragments/StructuredText/BlockGroup.html +54 -53
- data/docs/Prismic/Fragments/StructuredText/Span/Em.html +47 -46
- data/docs/Prismic/Fragments/StructuredText/Span/Hyperlink.html +53 -52
- data/docs/Prismic/Fragments/StructuredText/Span/Label.html +52 -51
- data/docs/Prismic/Fragments/StructuredText/Span/Strong.html +47 -46
- data/docs/Prismic/Fragments/StructuredText/Span.html +52 -51
- data/docs/Prismic/Fragments/StructuredText.html +59 -58
- data/docs/Prismic/Fragments/Text.html +54 -53
- data/docs/Prismic/Fragments/Timestamp.html +52 -51
- data/docs/Prismic/Fragments/WebLink.html +50 -49
- data/docs/Prismic/Fragments.html +39 -39
- data/docs/Prismic/HtmlSerializer.html +57 -56
- data/docs/Prismic/JsonParser.html +145 -143
- data/docs/Prismic/LinkResolver.html +73 -72
- data/docs/Prismic/LruCache.html +70 -69
- data/docs/Prismic/Predicates.html +261 -209
- data/docs/Prismic/Ref.html +86 -85
- data/docs/Prismic/Response.html +75 -73
- data/docs/Prismic/SearchForm/AuthenticationException.html +44 -43
- data/docs/Prismic/SearchForm/AuthorizationException.html +44 -43
- data/docs/Prismic/SearchForm/FormSearchException.html +44 -43
- data/docs/Prismic/SearchForm/NoRefSetException.html +44 -43
- data/docs/Prismic/SearchForm/RefNotFoundException.html +44 -43
- data/docs/Prismic/SearchForm/UnsupportedFormKind.html +44 -43
- data/docs/Prismic/SearchForm.html +97 -96
- data/docs/Prismic/Variation.html +57 -56
- data/docs/Prismic/WithFragments.html +115 -113
- data/docs/Prismic.html +91 -93
- data/docs/_index.html +32 -35
- data/docs/class_list.html +24 -27
- data/docs/css/full_list.css +32 -31
- data/docs/css/style.css +244 -91
- data/docs/file.README.html +39 -74
- data/docs/file_list.html +26 -26
- data/docs/frames.html +7 -16
- data/docs/index.html +39 -74
- data/docs/js/app.js +101 -77
- data/docs/js/full_list.js +170 -132
- data/docs/method_list.html +1995 -1189
- data/docs/top-level-namespace.html +34 -36
- data/lib/prismic/api.rb +10 -1
- data/lib/prismic/fragments/link.rb +3 -2
- data/lib/prismic/json_parsers.rb +14 -0
- data/lib/prismic/version.rb +1 -1
- data/lib/prismic.rb +47 -5
- data/spec/cache_spec.rb +2 -2
- data/spec/fragments_spec.rb +8 -1
- data/spec/json_parsers_spec.rb +13 -1
- data/spec/prismic_spec.rb +14 -7
- data/spec/responses_mocks/document.json +13 -0
- data/spec/simple_search_spec.rb +9 -0
- metadata +2 -2
@@ -1,12 +1,12 @@
|
|
1
|
-
<!DOCTYPE html
|
2
|
-
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
4
3
|
<head>
|
5
|
-
<meta
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
6
|
<title>
|
7
7
|
Class: Prismic::BasicNullCache
|
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::BasicNullCache";
|
19
19
|
relpath = '../';
|
20
|
-
framesUrl = "../frames.html#!Prismic/BasicNullCache.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>
|
36
41
|
»
|
37
42
|
<span class="title">BasicNullCache</span>
|
38
43
|
|
39
|
-
|
40
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
44
|
</div>
|
42
45
|
|
43
|
-
|
46
|
+
<div id="search">
|
44
47
|
|
45
48
|
<a class="full_list_link" id="class_list_link"
|
46
49
|
href="../class_list.html">
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
</a>
|
54
|
-
|
55
|
-
<a class="full_list_link" id="file_list_link"
|
56
|
-
href="../file_list.html">
|
57
|
-
File List
|
50
|
+
|
51
|
+
<svg width="24" height="24">
|
52
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
+
</svg>
|
58
56
|
</a>
|
59
57
|
|
60
58
|
</div>
|
61
|
-
|
62
|
-
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
63
61
|
|
64
|
-
|
65
|
-
|
66
|
-
<div id="content"><h1>Class: Prismic::BasicNullCache
|
62
|
+
<div id="content"><h1>Class: Prismic::BasicNullCache
|
67
63
|
|
68
64
|
|
69
65
|
|
70
66
|
</h1>
|
71
|
-
|
72
|
-
<dl class="box">
|
67
|
+
<div class="box_info">
|
73
68
|
|
74
|
-
|
75
|
-
<
|
69
|
+
<dl>
|
70
|
+
<dt>Inherits:</dt>
|
71
|
+
<dd>
|
76
72
|
<span class="inheritName">Object</span>
|
77
73
|
|
78
74
|
<ul class="fullTree">
|
@@ -83,21 +79,25 @@
|
|
83
79
|
</ul>
|
84
80
|
<a href="#" class="inheritanceTree">show all</a>
|
85
81
|
|
86
|
-
|
87
|
-
|
82
|
+
</dd>
|
83
|
+
</dl>
|
84
|
+
|
85
|
+
|
88
86
|
|
89
87
|
|
90
|
-
|
91
88
|
|
92
|
-
|
93
89
|
|
94
90
|
|
91
|
+
|
92
|
+
|
93
|
+
|
95
94
|
|
96
|
-
|
97
|
-
<
|
95
|
+
<dl>
|
96
|
+
<dt>Defined in:</dt>
|
97
|
+
<dd>lib/prismic/cache/lru.rb</dd>
|
98
|
+
</dl>
|
98
99
|
|
99
|
-
</
|
100
|
-
<div class="clear"></div>
|
100
|
+
</div>
|
101
101
|
|
102
102
|
<h2>Overview</h2><div class="docstring">
|
103
103
|
<div class="discussion">
|
@@ -119,7 +119,7 @@
|
|
119
119
|
|
120
120
|
<h2>
|
121
121
|
Instance Method Summary
|
122
|
-
<small
|
122
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
123
123
|
</h2>
|
124
124
|
|
125
125
|
<ul class="summary">
|
@@ -127,7 +127,7 @@
|
|
127
127
|
<li class="public ">
|
128
128
|
<span class="summary_signature">
|
129
129
|
|
130
|
-
<a href="#get-instance_method" title="#get (instance method)"
|
130
|
+
<a href="#get-instance_method" title="#get (instance method)">#<strong>get</strong>(key) ⇒ Object </a>
|
131
131
|
|
132
132
|
|
133
133
|
|
@@ -149,7 +149,7 @@
|
|
149
149
|
<li class="public ">
|
150
150
|
<span class="summary_signature">
|
151
151
|
|
152
|
-
<a href="#set-instance_method" title="#set (instance method)"
|
152
|
+
<a href="#set-instance_method" title="#set (instance method)">#<strong>set</strong>(key, value = nil, expired_in = nil) ⇒ Object </a>
|
153
153
|
|
154
154
|
|
155
155
|
|
@@ -182,7 +182,7 @@
|
|
182
182
|
<div class="method_details first">
|
183
183
|
<h3 class="signature first" id="get-instance_method">
|
184
184
|
|
185
|
-
|
185
|
+
#<strong>get</strong>(key) ⇒ <tt>Object</tt>
|
186
186
|
|
187
187
|
|
188
188
|
|
@@ -210,7 +210,7 @@
|
|
210
210
|
<div class="method_details ">
|
211
211
|
<h3 class="signature " id="set-instance_method">
|
212
212
|
|
213
|
-
|
213
|
+
#<strong>set</strong>(key, value = nil, expired_in = nil) ⇒ <tt>Object</tt>
|
214
214
|
|
215
215
|
|
216
216
|
|
@@ -245,11 +245,12 @@
|
|
245
245
|
|
246
246
|
</div>
|
247
247
|
|
248
|
-
|
249
|
-
Generated on
|
248
|
+
<div id="footer">
|
249
|
+
Generated on Mon Jan 16 16:05:09 2017 by
|
250
250
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
251
|
-
0.8
|
251
|
+
0.9.8 (ruby-2.3.1).
|
252
252
|
</div>
|
253
253
|
|
254
|
+
</div>
|
254
255
|
</body>
|
255
256
|
</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
|
Module: Prismic::DefaultHTTPClient
|
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::DefaultHTTPClient";
|
19
19
|
relpath = '../';
|
20
|
-
framesUrl = "../frames.html#!Prismic/DefaultHTTPClient.html";
|
21
20
|
</script>
|
22
21
|
|
23
22
|
|
@@ -28,61 +27,61 @@
|
|
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 (D)</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">DefaultHTTPClient</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>Module: Prismic::DefaultHTTPClient
|
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.rb</dd>
|
82
|
+
</dl>
|
83
83
|
|
84
|
-
</
|
85
|
-
<div class="clear"></div>
|
84
|
+
</div>
|
86
85
|
|
87
86
|
<h2>Overview</h2><div class="docstring">
|
88
87
|
<div class="discussion">
|
@@ -104,7 +103,7 @@
|
|
104
103
|
|
105
104
|
<h2>
|
106
105
|
Class Method Summary
|
107
|
-
<small
|
106
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
108
107
|
</h2>
|
109
108
|
|
110
109
|
<ul class="summary">
|
@@ -112,7 +111,7 @@
|
|
112
111
|
<li class="public ">
|
113
112
|
<span class="summary_signature">
|
114
113
|
|
115
|
-
<a href="#get-class_method" title="get (class method)"
|
114
|
+
<a href="#get-class_method" title="get (class method)">.<strong>get</strong>(uri, data = {}, headers = {}) ⇒ Object </a>
|
116
115
|
|
117
116
|
|
118
117
|
|
@@ -135,7 +134,7 @@
|
|
135
134
|
<li class="public ">
|
136
135
|
<span class="summary_signature">
|
137
136
|
|
138
|
-
<a href="#post-class_method" title="post (class method)"
|
137
|
+
<a href="#post-class_method" title="post (class method)">.<strong>post</strong>(uri, data = {}, headers = {}) ⇒ Object </a>
|
139
138
|
|
140
139
|
|
141
140
|
|
@@ -158,7 +157,7 @@
|
|
158
157
|
<li class="public ">
|
159
158
|
<span class="summary_signature">
|
160
159
|
|
161
|
-
<a href="#url_encode-class_method" title="url_encode (class method)"
|
160
|
+
<a href="#url_encode-class_method" title="url_encode (class method)">.<strong>url_encode</strong>(data) ⇒ Object </a>
|
162
161
|
|
163
162
|
|
164
163
|
|
@@ -189,7 +188,7 @@
|
|
189
188
|
<div class="method_details first">
|
190
189
|
<h3 class="signature first" id="get-class_method">
|
191
190
|
|
192
|
-
|
191
|
+
.<strong>get</strong>(uri, data = {}, headers = {}) ⇒ <tt>Object</tt>
|
193
192
|
|
194
193
|
|
195
194
|
|
@@ -199,9 +198,12 @@
|
|
199
198
|
<div class="discussion">
|
200
199
|
<p>Performs a GET call and returns the result</p>
|
201
200
|
|
202
|
-
<p>The result must respond to
|
203
|
-
|
204
|
-
|
201
|
+
<p>The result must respond to</p>
|
202
|
+
|
203
|
+
<ul>
|
204
|
+
<li>code: returns the response's HTTP status code (as number or String)</li>
|
205
|
+
<li>body: returns the response's body (as String)</li>
|
206
|
+
</ul>
|
205
207
|
|
206
208
|
|
207
209
|
</div>
|
@@ -215,16 +217,16 @@
|
|
215
217
|
<pre class="lines">
|
216
218
|
|
217
219
|
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
220
|
+
579
|
221
|
+
580
|
222
|
+
581
|
223
|
+
582
|
224
|
+
583
|
225
|
+
584
|
226
|
+
585</pre>
|
225
227
|
</td>
|
226
228
|
<td>
|
227
|
-
<pre class="code"><span class="info file"># File 'lib/prismic.rb', line
|
229
|
+
<pre class="code"><span class="info file"># File 'lib/prismic.rb', line 579</span>
|
228
230
|
|
229
231
|
<span class='kw'>def</span> <span class='id identifier rubyid_get'>get</span><span class='lparen'>(</span><span class='id identifier rubyid_uri'>uri</span><span class='comma'>,</span> <span class='id identifier rubyid_data'>data</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='id identifier rubyid_headers'>headers</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
230
232
|
<span class='id identifier rubyid_uri'>uri</span> <span class='op'>=</span> <span class='const'>URI</span><span class='lparen'>(</span><span class='id identifier rubyid_uri'>uri</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_uri'>uri</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>String</span><span class='rparen'>)</span>
|
@@ -241,7 +243,7 @@
|
|
241
243
|
<div class="method_details ">
|
242
244
|
<h3 class="signature " id="post-class_method">
|
243
245
|
|
244
|
-
|
246
|
+
.<strong>post</strong>(uri, data = {}, headers = {}) ⇒ <tt>Object</tt>
|
245
247
|
|
246
248
|
|
247
249
|
|
@@ -251,9 +253,12 @@
|
|
251
253
|
<div class="discussion">
|
252
254
|
<p>Performs a POST call and returns the result</p>
|
253
255
|
|
254
|
-
<p>The result must respond to
|
255
|
-
|
256
|
-
|
256
|
+
<p>The result must respond to</p>
|
257
|
+
|
258
|
+
<ul>
|
259
|
+
<li>code: returns the response's HTTP status code (as number or String)</li>
|
260
|
+
<li>body: returns the response's body (as String)</li>
|
261
|
+
</ul>
|
257
262
|
|
258
263
|
|
259
264
|
</div>
|
@@ -267,16 +272,16 @@
|
|
267
272
|
<pre class="lines">
|
268
273
|
|
269
274
|
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
275
|
+
592
|
276
|
+
593
|
277
|
+
594
|
278
|
+
595
|
279
|
+
596
|
280
|
+
597
|
281
|
+
598</pre>
|
277
282
|
</td>
|
278
283
|
<td>
|
279
|
-
<pre class="code"><span class="info file"># File 'lib/prismic.rb', line
|
284
|
+
<pre class="code"><span class="info file"># File 'lib/prismic.rb', line 592</span>
|
280
285
|
|
281
286
|
<span class='kw'>def</span> <span class='id identifier rubyid_post'>post</span><span class='lparen'>(</span><span class='id identifier rubyid_uri'>uri</span><span class='comma'>,</span> <span class='id identifier rubyid_data'>data</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='id identifier rubyid_headers'>headers</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
282
287
|
<span class='id identifier rubyid_uri'>uri</span> <span class='op'>=</span> <span class='const'>URI</span><span class='lparen'>(</span><span class='id identifier rubyid_uri'>uri</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_uri'>uri</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>String</span><span class='rparen'>)</span>
|
@@ -293,7 +298,7 @@
|
|
293
298
|
<div class="method_details ">
|
294
299
|
<h3 class="signature " id="url_encode-class_method">
|
295
300
|
|
296
|
-
|
301
|
+
.<strong>url_encode</strong>(data) ⇒ <tt>Object</tt>
|
297
302
|
|
298
303
|
|
299
304
|
|
@@ -305,20 +310,20 @@
|
|
305
310
|
<pre class="lines">
|
306
311
|
|
307
312
|
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
313
|
+
600
|
314
|
+
601
|
315
|
+
602
|
316
|
+
603
|
317
|
+
604
|
318
|
+
605
|
319
|
+
606
|
320
|
+
607
|
321
|
+
608
|
322
|
+
609
|
323
|
+
610</pre>
|
319
324
|
</td>
|
320
325
|
<td>
|
321
|
-
<pre class="code"><span class="info file"># File 'lib/prismic.rb', line
|
326
|
+
<pre class="code"><span class="info file"># File 'lib/prismic.rb', line 600</span>
|
322
327
|
|
323
328
|
<span class='kw'>def</span> <span class='id identifier rubyid_url_encode'>url_encode</span><span class='lparen'>(</span><span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span>
|
324
329
|
<span class='comment'># Can't use URI.encode_www_form (doesn't support multi-values in 1.9.2)
|
@@ -340,11 +345,12 @@
|
|
340
345
|
|
341
346
|
</div>
|
342
347
|
|
343
|
-
|
344
|
-
Generated on
|
348
|
+
<div id="footer">
|
349
|
+
Generated on Mon Jan 16 16:05:08 2017 by
|
345
350
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
346
|
-
0.8
|
351
|
+
0.9.8 (ruby-2.3.1).
|
347
352
|
</div>
|
348
353
|
|
354
|
+
</div>
|
349
355
|
</body>
|
350
356
|
</html>
|