contentful 0.1.0 → 0.1.1
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 +7 -0
- data/.gitignore +1 -0
- data/ChangeLog.md +6 -0
- data/Gemfile +5 -0
- data/README.md +1 -0
- data/contentful.gemspec +1 -1
- data/lib/contentful/array.rb +1 -2
- data/lib/contentful/asset.rb +3 -3
- data/lib/contentful/client.rb +15 -18
- data/lib/contentful/content_type.rb +1 -1
- data/lib/contentful/dynamic_entry.rb +6 -6
- data/lib/contentful/entry.rb +1 -1
- data/lib/contentful/error.rb +3 -3
- data/lib/contentful/field.rb +1 -1
- data/lib/contentful/file.rb +1 -1
- data/lib/contentful/link.rb +2 -2
- data/lib/contentful/locale.rb +1 -1
- data/lib/contentful/location.rb +1 -1
- data/lib/contentful/resource.rb +10 -11
- data/lib/contentful/resource_builder.rb +63 -39
- data/lib/contentful/space.rb +1 -1
- data/lib/contentful/support.rb +5 -3
- data/lib/contentful/version.rb +1 -1
- data/spec/fixtures/json_responses/includes.json +111 -0
- data/spec/fixtures/json_responses/link_array.json +43 -0
- data/spec/resource_building_spec.rb +20 -0
- data/spec/spec_helper.rb +5 -1
- metadata +138 -192
- data/.README.md.swp +0 -0
- data/do_request.sh +0 -5
- data/doc/Contentful.html +0 -131
- data/doc/Contentful/AccessDenied.html +0 -158
- data/doc/Contentful/Array.html +0 -346
- data/doc/Contentful/Asset.html +0 -315
- data/doc/Contentful/BadRequest.html +0 -158
- data/doc/Contentful/Client.html +0 -1407
- data/doc/Contentful/ContentType.html +0 -183
- data/doc/Contentful/DynamicEntry.html +0 -333
- data/doc/Contentful/Entry.html +0 -198
- data/doc/Contentful/Error.html +0 -413
- data/doc/Contentful/Field.html +0 -161
- data/doc/Contentful/File.html +0 -160
- data/doc/Contentful/Link.html +0 -275
- data/doc/Contentful/Locale.html +0 -161
- data/doc/Contentful/NotFound.html +0 -158
- data/doc/Contentful/Request.html +0 -669
- data/doc/Contentful/Resource.html +0 -606
- data/doc/Contentful/Resource/AssetFields.html +0 -413
- data/doc/Contentful/Resource/AssetFields/ClassMethods.html +0 -174
- data/doc/Contentful/Resource/ClassMethods.html +0 -271
- data/doc/Contentful/Resource/Fields.html +0 -398
- data/doc/Contentful/Resource/Fields/ClassMethods.html +0 -187
- data/doc/Contentful/Resource/SystemProperties.html +0 -444
- data/doc/Contentful/Resource/SystemProperties/ClassMethods.html +0 -174
- data/doc/Contentful/ResourceBuilder.html +0 -1400
- data/doc/Contentful/Response.html +0 -546
- data/doc/Contentful/ServerError.html +0 -158
- data/doc/Contentful/Space.html +0 -183
- data/doc/Contentful/Support.html +0 -198
- data/doc/Contentful/Unauthorized.html +0 -158
- data/doc/Contentful/UnparsableJson.html +0 -158
- data/doc/Contentful/UnparsableResource.html +0 -158
- data/doc/_index.html +0 -410
- data/doc/class_list.html +0 -54
- data/doc/css/common.css +0 -1
- data/doc/css/full_list.css +0 -57
- data/doc/css/style.css +0 -338
- data/doc/file.README.html +0 -214
- data/doc/file_list.html +0 -56
- data/doc/frames.html +0 -26
- data/doc/index.html +0 -214
- data/doc/js/app.js +0 -219
- data/doc/js/full_list.js +0 -178
- data/doc/js/jquery.js +0 -4
- data/doc/method_list.html +0 -533
- data/doc/top-level-namespace.html +0 -112
@@ -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.3
|
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#!" + escape(window.location.href);
|
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
|
-
29
|
162
|
-
30
|
163
|
-
31</pre>
|
164
|
-
</td>
|
165
|
-
<td>
|
166
|
-
<pre class="code"><span class="info file"># File 'lib/contentful/resource/fields.rb', line 29</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 Mar 11 09:25:52 2014 by
|
182
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
183
|
-
0.8.7.3 (ruby-1.9.3).
|
184
|
-
</div>
|
185
|
-
|
186
|
-
</body>
|
187
|
-
</html>
|
@@ -1,444 +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::SystemProperties
|
8
|
-
|
9
|
-
— Documentation by YARD 0.8.7.3
|
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#!" + escape(window.location.href);
|
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 (S)</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>
|
36
|
-
»
|
37
|
-
<span class="title">SystemProperties</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::SystemProperties
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
</h1>
|
71
|
-
|
72
|
-
<dl class="box">
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
<dt class="r1">Included in:</dt>
|
81
|
-
<dd class="r1"><span class='object_link'><a href="../Array.html" title="Contentful::Array (class)">Array</a></span>, <span class='object_link'><a href="../Asset.html" title="Contentful::Asset (class)">Asset</a></span>, <span class='object_link'><a href="../ContentType.html" title="Contentful::ContentType (class)">ContentType</a></span>, <span class='object_link'><a href="../Entry.html" title="Contentful::Entry (class)">Entry</a></span>, <span class='object_link'><a href="../Link.html" title="Contentful::Link (class)">Link</a></span>, <span class='object_link'><a href="../Space.html" title="Contentful::Space (class)">Space</a></span></dd>
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
<dt class="r2 last">Defined in:</dt>
|
86
|
-
<dd class="r2 last">lib/contentful/resource/system_properties.rb</dd>
|
87
|
-
|
88
|
-
</dl>
|
89
|
-
<div class="clear"></div>
|
90
|
-
|
91
|
-
<h2>Overview</h2><div class="docstring">
|
92
|
-
<div class="discussion">
|
93
|
-
|
94
|
-
<p>Adds the feature to have system properties to a Resource.</p>
|
95
|
-
|
96
|
-
|
97
|
-
</div>
|
98
|
-
</div>
|
99
|
-
<div class="tags">
|
100
|
-
|
101
|
-
|
102
|
-
</div><h2>Defined Under Namespace</h2>
|
103
|
-
<p class="children">
|
104
|
-
|
105
|
-
|
106
|
-
<strong class="modules">Modules:</strong> <span class='object_link'><a href="SystemProperties/ClassMethods.html" title="Contentful::Resource::SystemProperties::ClassMethods (module)">ClassMethods</a></span>
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
</p>
|
112
|
-
|
113
|
-
<h2>Constant Summary</h2>
|
114
|
-
|
115
|
-
<dl class="constants">
|
116
|
-
|
117
|
-
<dt id="SYS_COERCIONS-constant" class="">SYS_COERCIONS =
|
118
|
-
|
119
|
-
</dt>
|
120
|
-
<dd><pre class="code"><span class='lbrace'>{</span>
|
121
|
-
<span class='label'>type:</span> <span class='symbol'>:string</span><span class='comma'>,</span>
|
122
|
-
<span class='label'>id:</span> <span class='symbol'>:string</span><span class='comma'>,</span>
|
123
|
-
<span class='label'>space:</span> <span class='kw'>nil</span><span class='comma'>,</span>
|
124
|
-
<span class='label'>contentType:</span> <span class='kw'>nil</span><span class='comma'>,</span>
|
125
|
-
<span class='label'>linkType:</span> <span class='symbol'>:string</span><span class='comma'>,</span>
|
126
|
-
<span class='label'>revision:</span> <span class='symbol'>:integer</span><span class='comma'>,</span>
|
127
|
-
<span class='label'>createdAt:</span> <span class='symbol'>:date</span><span class='comma'>,</span>
|
128
|
-
<span class='label'>updatedAt:</span> <span class='symbol'>:date</span><span class='comma'>,</span>
|
129
|
-
<span class='label'>locale:</span> <span class='symbol'>:string</span><span class='comma'>,</span>
|
130
|
-
<span class='rbrace'>}</span></pre></dd>
|
131
|
-
|
132
|
-
</dl>
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
139
|
-
<ul class="summary">
|
140
|
-
|
141
|
-
<li class="public ">
|
142
|
-
<span class="summary_signature">
|
143
|
-
|
144
|
-
<a href="#sys-instance_method" title="#sys (instance method)">- (Object) <strong>sys</strong> </a>
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
</span>
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
<span class="note title readonly">readonly</span>
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
<span class="summary_desc"><div class='inline'>
|
164
|
-
<p>Returns the value of attribute sys.</p>
|
165
|
-
</div></span>
|
166
|
-
|
167
|
-
</li>
|
168
|
-
|
169
|
-
|
170
|
-
</ul>
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
<h2>
|
177
|
-
Class Method Summary
|
178
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
179
|
-
</h2>
|
180
|
-
|
181
|
-
<ul class="summary">
|
182
|
-
|
183
|
-
<li class="public ">
|
184
|
-
<span class="summary_signature">
|
185
|
-
|
186
|
-
<a href="#included-class_method" title="included (class method)">+ (Object) <strong>included</strong>(base) </a>
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
</span>
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
201
|
-
|
202
|
-
</li>
|
203
|
-
|
204
|
-
|
205
|
-
</ul>
|
206
|
-
|
207
|
-
<h2>
|
208
|
-
Instance Method Summary
|
209
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
210
|
-
</h2>
|
211
|
-
|
212
|
-
<ul class="summary">
|
213
|
-
|
214
|
-
<li class="public ">
|
215
|
-
<span class="summary_signature">
|
216
|
-
|
217
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)">- (Object) <strong>initialize</strong>(object) </a>
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
</span>
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
232
|
-
|
233
|
-
</li>
|
234
|
-
|
235
|
-
|
236
|
-
<li class="public ">
|
237
|
-
<span class="summary_signature">
|
238
|
-
|
239
|
-
<a href="#inspect-instance_method" title="#inspect (instance method)">- (Object) <strong>inspect</strong>(info = nil) </a>
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
</span>
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
254
|
-
|
255
|
-
</li>
|
256
|
-
|
257
|
-
|
258
|
-
</ul>
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
<div id="instance_attr_details" class="attr_details">
|
263
|
-
<h2>Instance Attribute Details</h2>
|
264
|
-
|
265
|
-
|
266
|
-
<span id=""></span>
|
267
|
-
<div class="method_details first">
|
268
|
-
<h3 class="signature first" id="sys-instance_method">
|
269
|
-
|
270
|
-
- (<tt>Object</tt>) <strong>sys</strong> <span class="extras">(readonly)</span>
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
</h3><div class="docstring">
|
277
|
-
<div class="discussion">
|
278
|
-
|
279
|
-
<p>Returns the value of attribute sys</p>
|
280
|
-
|
281
|
-
|
282
|
-
</div>
|
283
|
-
</div>
|
284
|
-
<div class="tags">
|
285
|
-
|
286
|
-
|
287
|
-
</div><table class="source_code">
|
288
|
-
<tr>
|
289
|
-
<td>
|
290
|
-
<pre class="lines">
|
291
|
-
|
292
|
-
|
293
|
-
16
|
294
|
-
17
|
295
|
-
18</pre>
|
296
|
-
</td>
|
297
|
-
<td>
|
298
|
-
<pre class="code"><span class="info file"># File 'lib/contentful/resource/system_properties.rb', line 16</span>
|
299
|
-
|
300
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_sys'>sys</span>
|
301
|
-
<span class='ivar'>@sys</span>
|
302
|
-
<span class='kw'>end</span></pre>
|
303
|
-
</td>
|
304
|
-
</tr>
|
305
|
-
</table>
|
306
|
-
</div>
|
307
|
-
|
308
|
-
</div>
|
309
|
-
|
310
|
-
|
311
|
-
<div id="class_method_details" class="method_details_list">
|
312
|
-
<h2>Class Method Details</h2>
|
313
|
-
|
314
|
-
|
315
|
-
<div class="method_details first">
|
316
|
-
<h3 class="signature first" id="included-class_method">
|
317
|
-
|
318
|
-
+ (<tt>Object</tt>) <strong>included</strong>(base)
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
</h3><table class="source_code">
|
325
|
-
<tr>
|
326
|
-
<td>
|
327
|
-
<pre class="lines">
|
328
|
-
|
329
|
-
|
330
|
-
37
|
331
|
-
38
|
332
|
-
39
|
333
|
-
40
|
334
|
-
41
|
335
|
-
42
|
336
|
-
43
|
337
|
-
44
|
338
|
-
45</pre>
|
339
|
-
</td>
|
340
|
-
<td>
|
341
|
-
<pre class="code"><span class="info file"># File 'lib/contentful/resource/system_properties.rb', line 37</span>
|
342
|
-
|
343
|
-
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_included'>included</span><span class='lparen'>(</span><span class='id identifier rubyid_base'>base</span><span class='rparen'>)</span>
|
344
|
-
<span class='id identifier rubyid_base'>base</span><span class='period'>.</span><span class='id identifier rubyid_extend'>extend</span><span class='lparen'>(</span><span class='const'>ClassMethods</span><span class='rparen'>)</span>
|
345
|
-
|
346
|
-
<span class='id identifier rubyid_base'>base</span><span class='period'>.</span><span class='id identifier rubyid_sys_coercions'>sys_coercions</span><span class='period'>.</span><span class='id identifier rubyid_keys'>keys</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span><span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_name'>name</span><span class='op'>|</span>
|
347
|
-
<span class='id identifier rubyid_base'>base</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span> <span class='symbol'>:define_method</span><span class='comma'>,</span> <span class='const'>Contentful</span><span class='op'>::</span><span class='const'>Support</span><span class='period'>.</span><span class='id identifier rubyid_snakify'>snakify</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span> <span class='kw'>do</span>
|
348
|
-
<span class='id identifier rubyid_sys'>sys</span><span class='lbracket'>[</span><span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span><span class='rbracket'>]</span>
|
349
|
-
<span class='kw'>end</span>
|
350
|
-
<span class='rbrace'>}</span>
|
351
|
-
<span class='kw'>end</span></pre>
|
352
|
-
</td>
|
353
|
-
</tr>
|
354
|
-
</table>
|
355
|
-
</div>
|
356
|
-
|
357
|
-
</div>
|
358
|
-
|
359
|
-
<div id="instance_method_details" class="method_details_list">
|
360
|
-
<h2>Instance Method Details</h2>
|
361
|
-
|
362
|
-
|
363
|
-
<div class="method_details first">
|
364
|
-
<h3 class="signature first" id="initialize-instance_method">
|
365
|
-
|
366
|
-
- (<tt>Object</tt>) <strong>initialize</strong>(object)
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
</h3><table class="source_code">
|
373
|
-
<tr>
|
374
|
-
<td>
|
375
|
-
<pre class="lines">
|
376
|
-
|
377
|
-
|
378
|
-
18
|
379
|
-
19
|
380
|
-
20
|
381
|
-
21</pre>
|
382
|
-
</td>
|
383
|
-
<td>
|
384
|
-
<pre class="code"><span class="info file"># File 'lib/contentful/resource/system_properties.rb', line 18</span>
|
385
|
-
|
386
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_object'>object</span><span class='comma'>,</span> <span class='op'>*</span><span class='rparen'>)</span>
|
387
|
-
<span class='kw'>super</span>
|
388
|
-
<span class='ivar'>@sys</span> <span class='op'>=</span> <span class='id identifier rubyid_extract_from_object'>extract_from_object</span> <span class='id identifier rubyid_object'>object</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>sys</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='symbol'>:sys</span>
|
389
|
-
<span class='kw'>end</span></pre>
|
390
|
-
</td>
|
391
|
-
</tr>
|
392
|
-
</table>
|
393
|
-
</div>
|
394
|
-
|
395
|
-
<div class="method_details ">
|
396
|
-
<h3 class="signature " id="inspect-instance_method">
|
397
|
-
|
398
|
-
- (<tt>Object</tt>) <strong>inspect</strong>(info = nil)
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
</h3><table class="source_code">
|
405
|
-
<tr>
|
406
|
-
<td>
|
407
|
-
<pre class="lines">
|
408
|
-
|
409
|
-
|
410
|
-
23
|
411
|
-
24
|
412
|
-
25
|
413
|
-
26
|
414
|
-
27
|
415
|
-
28
|
416
|
-
29</pre>
|
417
|
-
</td>
|
418
|
-
<td>
|
419
|
-
<pre class="code"><span class="info file"># File 'lib/contentful/resource/system_properties.rb', line 23</span>
|
420
|
-
|
421
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_inspect'>inspect</span><span class='lparen'>(</span><span class='id identifier rubyid_info'>info</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
422
|
-
<span class='kw'>if</span> <span class='id identifier rubyid_sys'>sys</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
|
423
|
-
<span class='kw'>super</span><span class='lparen'>(</span><span class='id identifier rubyid_info'>info</span><span class='rparen'>)</span>
|
424
|
-
<span class='kw'>else</span>
|
425
|
-
<span class='kw'>super</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_info'>info</span><span class='rbrace'>}</span><span class='tstring_content'> @sys=</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_sys'>sys</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='rbrace'>}</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
426
|
-
<span class='kw'>end</span>
|
427
|
-
<span class='kw'>end</span></pre>
|
428
|
-
</td>
|
429
|
-
</tr>
|
430
|
-
</table>
|
431
|
-
</div>
|
432
|
-
|
433
|
-
</div>
|
434
|
-
|
435
|
-
</div>
|
436
|
-
|
437
|
-
<div id="footer">
|
438
|
-
Generated on Tue Mar 11 09:25:52 2014 by
|
439
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
440
|
-
0.8.7.3 (ruby-1.9.3).
|
441
|
-
</div>
|
442
|
-
|
443
|
-
</body>
|
444
|
-
</html>
|