contentful 2.1.1 → 2.1.2
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/CHANGELOG.md +6 -0
- data/Gemfile.lock +37 -46
- data/lib/contentful/array.rb +8 -1
- data/lib/contentful/entry.rb +9 -9
- data/lib/contentful/fields_resource.rb +9 -8
- data/lib/contentful/resource_builder.rb +1 -7
- data/lib/contentful/support.rb +22 -0
- data/lib/contentful/version.rb +1 -1
- data/spec/array_spec.rb +21 -0
- data/spec/fixtures/vcr_cassettes/array/nested_resources.yml +159 -0
- metadata +5 -106
- data/coverage/.last_run.json +0 -5
- data/coverage/.resultset.json +0 -1887
- data/coverage/.resultset.json.lock +0 -0
- data/coverage/assets/0.10.0/application.css +0 -799
- data/coverage/assets/0.10.0/application.js +0 -1707
- data/coverage/assets/0.10.0/colorbox/border.png +0 -0
- data/coverage/assets/0.10.0/colorbox/controls.png +0 -0
- data/coverage/assets/0.10.0/colorbox/loading.gif +0 -0
- data/coverage/assets/0.10.0/colorbox/loading_background.png +0 -0
- data/coverage/assets/0.10.0/favicon_green.png +0 -0
- data/coverage/assets/0.10.0/favicon_red.png +0 -0
- data/coverage/assets/0.10.0/favicon_yellow.png +0 -0
- data/coverage/assets/0.10.0/loading.gif +0 -0
- data/coverage/assets/0.10.0/magnify.png +0 -0
- data/coverage/assets/0.10.0/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/coverage/assets/0.10.0/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/coverage/assets/0.10.0/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/coverage/assets/0.10.0/smoothness/images/ui-icons_222222_256x240.png +0 -0
- data/coverage/assets/0.10.0/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
- data/coverage/assets/0.10.0/smoothness/images/ui-icons_454545_256x240.png +0 -0
- data/coverage/assets/0.10.0/smoothness/images/ui-icons_888888_256x240.png +0 -0
- data/coverage/assets/0.10.0/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/coverage/index.html +0 -11816
- data/doc/Contentful.html +0 -153
- data/doc/Contentful/AccessDenied.html +0 -161
- data/doc/Contentful/Array.html +0 -743
- data/doc/Contentful/ArrayCoercion.html +0 -244
- data/doc/Contentful/ArrayLike.html +0 -627
- data/doc/Contentful/Asset.html +0 -475
- data/doc/Contentful/BadRequest.html +0 -161
- data/doc/Contentful/BaseCoercion.html +0 -447
- data/doc/Contentful/BaseResource.html +0 -599
- data/doc/Contentful/BooleanCoercion.html +0 -244
- data/doc/Contentful/Client.html +0 -1606
- data/doc/Contentful/Constants.html +0 -636
- data/doc/Contentful/ContentType.html +0 -614
- data/doc/Contentful/ContentTypeCache.html +0 -430
- data/doc/Contentful/DateCoercion.html +0 -240
- data/doc/Contentful/DeletedAsset.html +0 -159
- data/doc/Contentful/DeletedEntry.html +0 -159
- data/doc/Contentful/DynamicEntry.html +0 -214
- data/doc/Contentful/Entry.html +0 -273
- data/doc/Contentful/Error.html +0 -424
- data/doc/Contentful/Field.html +0 -929
- data/doc/Contentful/FieldsResource.html +0 -501
- data/doc/Contentful/File.html +0 -520
- data/doc/Contentful/FloatCoercion.html +0 -240
- data/doc/Contentful/IntegerCoercion.html +0 -240
- data/doc/Contentful/Link.html +0 -251
- data/doc/Contentful/LinkCoercion.html +0 -160
- data/doc/Contentful/Locale.html +0 -447
- data/doc/Contentful/Location.html +0 -385
- data/doc/Contentful/LocationCoercion.html +0 -240
- data/doc/Contentful/NotFound.html +0 -161
- data/doc/Contentful/ObjectCoercion.html +0 -240
- data/doc/Contentful/RateLimitExceeded.html +0 -161
- data/doc/Contentful/Request.html +0 -889
- data/doc/Contentful/Resource.html +0 -117
- data/doc/Contentful/Resource/ArrayLike.html +0 -627
- data/doc/Contentful/Resource/AssetFields.html +0 -246
- data/doc/Contentful/Resource/AssetFields/ClassMethods.html +0 -174
- data/doc/Contentful/Resource/ClassMethods.html +0 -378
- data/doc/Contentful/Resource/CustomResource.html +0 -119
- data/doc/Contentful/Resource/Fields.html +0 -288
- data/doc/Contentful/Resource/Fields/ClassMethods.html +0 -187
- data/doc/Contentful/Resource/LocalizedFields.html +0 -305
- data/doc/Contentful/Resource/SystemProperties.html +0 -205
- data/doc/Contentful/Resource/SystemProperties/ClassMethods.html +0 -174
- data/doc/Contentful/ResourceBuilder.html +0 -969
- data/doc/Contentful/Response.html +0 -641
- data/doc/Contentful/ServerError.html +0 -161
- data/doc/Contentful/ServiceUnavailable.html +0 -161
- data/doc/Contentful/Space.html +0 -395
- data/doc/Contentful/StringCoercion.html +0 -244
- data/doc/Contentful/Support.html +0 -550
- data/doc/Contentful/SymbolCoercion.html +0 -171
- data/doc/Contentful/Sync.html +0 -655
- data/doc/Contentful/SyncPage.html +0 -801
- data/doc/Contentful/TextCoercion.html +0 -171
- data/doc/Contentful/Unauthorized.html +0 -161
- data/doc/Contentful/UnparsableJson.html +0 -161
- data/doc/Contentful/UnparsableResource.html +0 -137
- data/doc/_index.html +0 -537
- data/doc/class_list.html +0 -51
- data/doc/css/common.css +0 -1
- data/doc/css/full_list.css +0 -58
- data/doc/css/style.css +0 -481
- data/doc/file.CHANGELOG.html +0 -506
- data/doc/file.LICENSE.html +0 -72
- data/doc/file.README.html +0 -565
- data/doc/file_list.html +0 -66
- data/doc/frames.html +0 -17
- data/doc/index.html +0 -565
- data/doc/js/app.js +0 -243
- data/doc/js/full_list.js +0 -216
- data/doc/js/jquery.js +0 -4
- data/doc/method_list.html +0 -1115
- data/doc/top-level-namespace.html +0 -112
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
-
<title>
|
|
7
|
-
Module: Contentful::Resource::CustomResource
|
|
8
|
-
|
|
9
|
-
— Documentation by YARD 0.9.5
|
|
10
|
-
|
|
11
|
-
</title>
|
|
12
|
-
|
|
13
|
-
<link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
|
|
14
|
-
|
|
15
|
-
<link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
|
|
16
|
-
|
|
17
|
-
<script type="text/javascript" charset="utf-8">
|
|
18
|
-
pathId = "Contentful::Resource::CustomResource";
|
|
19
|
-
relpath = '../../';
|
|
20
|
-
</script>
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
|
24
|
-
|
|
25
|
-
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
</head>
|
|
29
|
-
<body>
|
|
30
|
-
<div class="nav_wrap">
|
|
31
|
-
<iframe id="nav" src="../../class_list.html"></iframe>
|
|
32
|
-
<div id="resizer"></div>
|
|
33
|
-
</div>
|
|
34
|
-
|
|
35
|
-
<div id="main" tabindex="-1">
|
|
36
|
-
<div id="header">
|
|
37
|
-
<div id="menu">
|
|
38
|
-
|
|
39
|
-
<a href="../../_index.html">Index (C)</a> »
|
|
40
|
-
<span class='title'><span class='object_link'><a href="../../Contentful.html" title="Contentful (module)">Contentful</a></span></span> » <span class='title'><span class='object_link'><a href="../Resource.html" title="Contentful::Resource (module)">Resource</a></span></span>
|
|
41
|
-
»
|
|
42
|
-
<span class="title">CustomResource</span>
|
|
43
|
-
|
|
44
|
-
</div>
|
|
45
|
-
|
|
46
|
-
<div id="search">
|
|
47
|
-
|
|
48
|
-
<a class="full_list_link" id="class_list_link"
|
|
49
|
-
href="../../class_list.html">
|
|
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>
|
|
56
|
-
</a>
|
|
57
|
-
|
|
58
|
-
</div>
|
|
59
|
-
<div class="clear"></div>
|
|
60
|
-
</div>
|
|
61
|
-
|
|
62
|
-
<iframe id="search_frame" src="../../class_list.html"></iframe>
|
|
63
|
-
|
|
64
|
-
<div id="content"><h1>Module: Contentful::Resource::CustomResource
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
</h1>
|
|
69
|
-
<div class="box_info">
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
<dl>
|
|
82
|
-
<dt>Defined in:</dt>
|
|
83
|
-
<dd>lib/contentful/resource/custom_resource.rb</dd>
|
|
84
|
-
</dl>
|
|
85
|
-
|
|
86
|
-
</div>
|
|
87
|
-
|
|
88
|
-
<h2>Overview</h2><div class="docstring">
|
|
89
|
-
<div class="discussion">
|
|
90
|
-
|
|
91
|
-
<p>Module for simplifying Custom Resource Creation Allows auto-mapping of
|
|
92
|
-
fields to properties and properties to fields</p>
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
</div>
|
|
96
|
-
</div>
|
|
97
|
-
<div class="tags">
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
</div>
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
</div>
|
|
110
|
-
|
|
111
|
-
<div id="footer">
|
|
112
|
-
Generated on Fri Jan 6 17:57:03 2017 by
|
|
113
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
114
|
-
0.9.5 (ruby-2.3.1).
|
|
115
|
-
</div>
|
|
116
|
-
|
|
117
|
-
</div>
|
|
118
|
-
</body>
|
|
119
|
-
</html>
|
|
@@ -1,288 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
-
<title>
|
|
7
|
-
Module: Contentful::Resource::Fields
|
|
8
|
-
|
|
9
|
-
— Documentation by YARD 0.9.5
|
|
10
|
-
|
|
11
|
-
</title>
|
|
12
|
-
|
|
13
|
-
<link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
|
|
14
|
-
|
|
15
|
-
<link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
|
|
16
|
-
|
|
17
|
-
<script type="text/javascript" charset="utf-8">
|
|
18
|
-
pathId = "Contentful::Resource::Fields";
|
|
19
|
-
relpath = '../../';
|
|
20
|
-
</script>
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
|
24
|
-
|
|
25
|
-
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
</head>
|
|
29
|
-
<body>
|
|
30
|
-
<div class="nav_wrap">
|
|
31
|
-
<iframe id="nav" src="../../class_list.html"></iframe>
|
|
32
|
-
<div id="resizer"></div>
|
|
33
|
-
</div>
|
|
34
|
-
|
|
35
|
-
<div id="main" tabindex="-1">
|
|
36
|
-
<div id="header">
|
|
37
|
-
<div id="menu">
|
|
38
|
-
|
|
39
|
-
<a href="../../_index.html">Index (F)</a> »
|
|
40
|
-
<span class='title'><span class='object_link'><a href="../../Contentful.html" title="Contentful (module)">Contentful</a></span></span> » <span class='title'><span class='object_link'><a href="../Resource.html" title="Contentful::Resource (module)">Resource</a></span></span>
|
|
41
|
-
»
|
|
42
|
-
<span class="title">Fields</span>
|
|
43
|
-
|
|
44
|
-
</div>
|
|
45
|
-
|
|
46
|
-
<div id="search">
|
|
47
|
-
|
|
48
|
-
<a class="full_list_link" id="class_list_link"
|
|
49
|
-
href="../../class_list.html">
|
|
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>
|
|
56
|
-
</a>
|
|
57
|
-
|
|
58
|
-
</div>
|
|
59
|
-
<div class="clear"></div>
|
|
60
|
-
</div>
|
|
61
|
-
|
|
62
|
-
<iframe id="search_frame" src="../../class_list.html"></iframe>
|
|
63
|
-
|
|
64
|
-
<div id="content"><h1>Module: Contentful::Resource::Fields
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
</h1>
|
|
69
|
-
<div class="box_info">
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
<dl>
|
|
82
|
-
<dt>Defined in:</dt>
|
|
83
|
-
<dd>lib/contentful/resource/fields.rb</dd>
|
|
84
|
-
</dl>
|
|
85
|
-
|
|
86
|
-
</div>
|
|
87
|
-
|
|
88
|
-
<h2>Overview</h2><div class="docstring">
|
|
89
|
-
<div class="discussion">
|
|
90
|
-
|
|
91
|
-
<p>Include this module into your Resource class to enable it to deal with
|
|
92
|
-
entry fields (but not asset fields)</p>
|
|
93
|
-
|
|
94
|
-
<p>It depends on system properties being available</p>
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
</div>
|
|
98
|
-
</div>
|
|
99
|
-
<div class="tags">
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
</div>
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
<h2>
|
|
111
|
-
Instance Method Summary
|
|
112
|
-
<small><a href="#" class="summary_toggle">collapse</a></small>
|
|
113
|
-
</h2>
|
|
114
|
-
|
|
115
|
-
<ul class="summary">
|
|
116
|
-
|
|
117
|
-
<li class="public ">
|
|
118
|
-
<span class="summary_signature">
|
|
119
|
-
|
|
120
|
-
<a href="#fields-instance_method" title="#fields (instance method)">#<strong>fields</strong>(wanted_locale = nil) ⇒ Hash </a>
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
</span>
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
<span class="summary_desc"><div class='inline'>
|
|
135
|
-
<p>Returns all fields of the asset.</p>
|
|
136
|
-
</div></span>
|
|
137
|
-
|
|
138
|
-
</li>
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
<li class="public ">
|
|
142
|
-
<span class="summary_signature">
|
|
143
|
-
|
|
144
|
-
<a href="#locales-instance_method" title="#locales (instance method)">#<strong>locales</strong> ⇒ Object </a>
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
</span>
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
<span class="summary_desc"><div class='inline'>
|
|
159
|
-
<p>Provides a list of the available locales for a Resource.</p>
|
|
160
|
-
</div></span>
|
|
161
|
-
|
|
162
|
-
</li>
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
</ul>
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
<div id="instance_method_details" class="method_details_list">
|
|
171
|
-
<h2>Instance Method Details</h2>
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
<div class="method_details first">
|
|
175
|
-
<h3 class="signature first" id="fields-instance_method">
|
|
176
|
-
|
|
177
|
-
#<strong>fields</strong>(wanted_locale = nil) ⇒ <tt>Hash</tt>
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
</h3><div class="docstring">
|
|
184
|
-
<div class="discussion">
|
|
185
|
-
|
|
186
|
-
<p>Returns all fields of the asset</p>
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
</div>
|
|
190
|
-
</div>
|
|
191
|
-
<div class="tags">
|
|
192
|
-
|
|
193
|
-
<p class="tag_title">Returns:</p>
|
|
194
|
-
<ul class="return">
|
|
195
|
-
|
|
196
|
-
<li>
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
<span class='type'>(<tt>Hash</tt>)</span>
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
—
|
|
204
|
-
<div class='inline'>
|
|
205
|
-
<p>fields for Resource on selected locale</p>
|
|
206
|
-
</div>
|
|
207
|
-
|
|
208
|
-
</li>
|
|
209
|
-
|
|
210
|
-
</ul>
|
|
211
|
-
|
|
212
|
-
</div><table class="source_code">
|
|
213
|
-
<tr>
|
|
214
|
-
<td>
|
|
215
|
-
<pre class="lines">
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
13
|
|
219
|
-
14
|
|
220
|
-
15
|
|
221
|
-
16</pre>
|
|
222
|
-
</td>
|
|
223
|
-
<td>
|
|
224
|
-
<pre class="code"><span class="info file"># File 'lib/contentful/resource/fields.rb', line 13</span>
|
|
225
|
-
|
|
226
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_fields'>fields</span><span class='lparen'>(</span><span class='id identifier rubyid_wanted_locale'>wanted_locale</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
|
227
|
-
<span class='id identifier rubyid_wanted_locale'>wanted_locale</span> <span class='op'>=</span> <span class='id identifier rubyid_locale_for_non_localized'>locale_for_non_localized</span> <span class='kw'>if</span> <span class='id identifier rubyid_wanted_locale'>wanted_locale</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
|
228
|
-
<span class='ivar'>@fields</span><span class='lbracket'>[</span><span class='id identifier rubyid_wanted_locale'>wanted_locale</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
|
229
|
-
<span class='kw'>end</span></pre>
|
|
230
|
-
</td>
|
|
231
|
-
</tr>
|
|
232
|
-
</table>
|
|
233
|
-
</div>
|
|
234
|
-
|
|
235
|
-
<div class="method_details ">
|
|
236
|
-
<h3 class="signature " id="locales-instance_method">
|
|
237
|
-
|
|
238
|
-
#<strong>locales</strong> ⇒ <tt>Object</tt>
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
</h3><div class="docstring">
|
|
245
|
-
<div class="discussion">
|
|
246
|
-
|
|
247
|
-
<p>Provides a list of the available locales for a Resource</p>
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
</div>
|
|
251
|
-
</div>
|
|
252
|
-
<div class="tags">
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
</div><table class="source_code">
|
|
256
|
-
<tr>
|
|
257
|
-
<td>
|
|
258
|
-
<pre class="lines">
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
47
|
|
262
|
-
48
|
|
263
|
-
49</pre>
|
|
264
|
-
</td>
|
|
265
|
-
<td>
|
|
266
|
-
<pre class="code"><span class="info file"># File 'lib/contentful/resource/fields.rb', line 47</span>
|
|
267
|
-
|
|
268
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_locales'>locales</span>
|
|
269
|
-
<span class='ivar'>@fields</span><span class='period'>.</span><span class='id identifier rubyid_keys'>keys</span>
|
|
270
|
-
<span class='kw'>end</span></pre>
|
|
271
|
-
</td>
|
|
272
|
-
</tr>
|
|
273
|
-
</table>
|
|
274
|
-
</div>
|
|
275
|
-
|
|
276
|
-
</div>
|
|
277
|
-
|
|
278
|
-
</div>
|
|
279
|
-
|
|
280
|
-
<div id="footer">
|
|
281
|
-
Generated on Fri Jan 6 17:57:03 2017 by
|
|
282
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
283
|
-
0.9.5 (ruby-2.3.1).
|
|
284
|
-
</div>
|
|
285
|
-
|
|
286
|
-
</div>
|
|
287
|
-
</body>
|
|
288
|
-
</html>
|
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
4
|
-
<head>
|
|
5
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
6
|
-
<title>
|
|
7
|
-
Module: Contentful::Resource::Fields::ClassMethods
|
|
8
|
-
|
|
9
|
-
— Documentation by YARD 0.8.7.6
|
|
10
|
-
|
|
11
|
-
</title>
|
|
12
|
-
|
|
13
|
-
<link rel="stylesheet" href="../../../css/style.css" type="text/css" charset="utf-8" />
|
|
14
|
-
|
|
15
|
-
<link rel="stylesheet" href="../../../css/common.css" type="text/css" charset="utf-8" />
|
|
16
|
-
|
|
17
|
-
<script type="text/javascript" charset="utf-8">
|
|
18
|
-
hasFrames = window.top.frames.main ? true : false;
|
|
19
|
-
relpath = '../../../';
|
|
20
|
-
framesUrl = "../../../frames.html#!Contentful/Resource/Fields/ClassMethods.html";
|
|
21
|
-
</script>
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
<script type="text/javascript" charset="utf-8" src="../../../js/jquery.js"></script>
|
|
25
|
-
|
|
26
|
-
<script type="text/javascript" charset="utf-8" src="../../../js/app.js"></script>
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
</head>
|
|
30
|
-
<body>
|
|
31
|
-
<div id="header">
|
|
32
|
-
<div id="menu">
|
|
33
|
-
|
|
34
|
-
<a href="../../../_index.html">Index (C)</a> »
|
|
35
|
-
<span class='title'><span class='object_link'><a href="../../../Contentful.html" title="Contentful (module)">Contentful</a></span></span> » <span class='title'><span class='object_link'><a href="../../Resource.html" title="Contentful::Resource (module)">Resource</a></span></span> » <span class='title'><span class='object_link'><a href="../Fields.html" title="Contentful::Resource::Fields (module)">Fields</a></span></span>
|
|
36
|
-
»
|
|
37
|
-
<span class="title">ClassMethods</span>
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
|
41
|
-
</div>
|
|
42
|
-
|
|
43
|
-
<div id="search">
|
|
44
|
-
|
|
45
|
-
<a class="full_list_link" id="class_list_link"
|
|
46
|
-
href="../../../class_list.html">
|
|
47
|
-
Class List
|
|
48
|
-
</a>
|
|
49
|
-
|
|
50
|
-
<a class="full_list_link" id="method_list_link"
|
|
51
|
-
href="../../../method_list.html">
|
|
52
|
-
Method List
|
|
53
|
-
</a>
|
|
54
|
-
|
|
55
|
-
<a class="full_list_link" id="file_list_link"
|
|
56
|
-
href="../../../file_list.html">
|
|
57
|
-
File List
|
|
58
|
-
</a>
|
|
59
|
-
|
|
60
|
-
</div>
|
|
61
|
-
<div class="clear"></div>
|
|
62
|
-
</div>
|
|
63
|
-
|
|
64
|
-
<iframe id="search_frame"></iframe>
|
|
65
|
-
|
|
66
|
-
<div id="content"><h1>Module: Contentful::Resource::Fields::ClassMethods
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
</h1>
|
|
71
|
-
|
|
72
|
-
<dl class="box">
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
<dt class="r1 last">Defined in:</dt>
|
|
82
|
-
<dd class="r1 last">lib/contentful/resource/fields.rb</dd>
|
|
83
|
-
|
|
84
|
-
</dl>
|
|
85
|
-
<div class="clear"></div>
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
<h2>
|
|
96
|
-
Instance Method Summary
|
|
97
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
|
98
|
-
</h2>
|
|
99
|
-
|
|
100
|
-
<ul class="summary">
|
|
101
|
-
|
|
102
|
-
<li class="public ">
|
|
103
|
-
<span class="summary_signature">
|
|
104
|
-
|
|
105
|
-
<a href="#fields_coercions-instance_method" title="#fields_coercions (instance method)">- (Object) <strong>fields_coercions</strong> </a>
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
</span>
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
<span class="summary_desc"><div class='inline'>
|
|
120
|
-
<p>No coercions, since no content type available.</p>
|
|
121
|
-
</div></span>
|
|
122
|
-
|
|
123
|
-
</li>
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
</ul>
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
<div id="instance_method_details" class="method_details_list">
|
|
132
|
-
<h2>Instance Method Details</h2>
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
<div class="method_details first">
|
|
136
|
-
<h3 class="signature first" id="fields_coercions-instance_method">
|
|
137
|
-
|
|
138
|
-
- (<tt>Object</tt>) <strong>fields_coercions</strong>
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
</h3><div class="docstring">
|
|
145
|
-
<div class="discussion">
|
|
146
|
-
|
|
147
|
-
<p>No coercions, since no content type available</p>
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
</div>
|
|
151
|
-
</div>
|
|
152
|
-
<div class="tags">
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
</div><table class="source_code">
|
|
156
|
-
<tr>
|
|
157
|
-
<td>
|
|
158
|
-
<pre class="lines">
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
54
|
|
162
|
-
55
|
|
163
|
-
56</pre>
|
|
164
|
-
</td>
|
|
165
|
-
<td>
|
|
166
|
-
<pre class="code"><span class="info file"># File 'lib/contentful/resource/fields.rb', line 54</span>
|
|
167
|
-
|
|
168
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_fields_coercions'>fields_coercions</span>
|
|
169
|
-
<span class='lbrace'>{</span><span class='rbrace'>}</span>
|
|
170
|
-
<span class='kw'>end</span></pre>
|
|
171
|
-
</td>
|
|
172
|
-
</tr>
|
|
173
|
-
</table>
|
|
174
|
-
</div>
|
|
175
|
-
|
|
176
|
-
</div>
|
|
177
|
-
|
|
178
|
-
</div>
|
|
179
|
-
|
|
180
|
-
<div id="footer">
|
|
181
|
-
Generated on Tue Feb 2 13:23:41 2016 by
|
|
182
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
183
|
-
0.8.7.6 (ruby-2.2.3).
|
|
184
|
-
</div>
|
|
185
|
-
|
|
186
|
-
</body>
|
|
187
|
-
</html>
|