contentful 2.1.3 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/Gemfile.lock +24 -26
- data/README.md +5 -0
- data/coverage/.last_run.json +1 -1
- data/coverage/.resultset.json +2399 -460
- data/coverage/assets/{0.10.1 → 0.10.2}/application.css +0 -0
- data/coverage/assets/{0.10.1 → 0.10.2}/application.js +0 -0
- data/coverage/assets/{0.10.1 → 0.10.2}/colorbox/border.png +0 -0
- data/coverage/assets/{0.10.1 → 0.10.2}/colorbox/controls.png +0 -0
- data/coverage/assets/{0.10.1 → 0.10.2}/colorbox/loading.gif +0 -0
- data/coverage/assets/{0.10.1 → 0.10.2}/colorbox/loading_background.png +0 -0
- data/coverage/assets/{0.10.1 → 0.10.2}/favicon_green.png +0 -0
- data/coverage/assets/{0.10.1 → 0.10.2}/favicon_red.png +0 -0
- data/coverage/assets/{0.10.1 → 0.10.2}/favicon_yellow.png +0 -0
- data/coverage/assets/{0.10.1 → 0.10.2}/loading.gif +0 -0
- data/coverage/assets/{0.10.1 → 0.10.2}/magnify.png +0 -0
- data/coverage/assets/{0.10.1 → 0.10.2}/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/coverage/assets/{0.10.1 → 0.10.2}/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/coverage/assets/{0.10.1 → 0.10.2}/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/coverage/assets/{0.10.1 → 0.10.2}/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/coverage/assets/{0.10.1 → 0.10.2}/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/coverage/assets/{0.10.1 → 0.10.2}/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/coverage/assets/{0.10.1 → 0.10.2}/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/coverage/assets/{0.10.1 → 0.10.2}/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/coverage/assets/{0.10.1 → 0.10.2}/smoothness/images/ui-icons_222222_256x240.png +0 -0
- data/coverage/assets/{0.10.1 → 0.10.2}/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
- data/coverage/assets/{0.10.1 → 0.10.2}/smoothness/images/ui-icons_454545_256x240.png +0 -0
- data/coverage/assets/{0.10.1 → 0.10.2}/smoothness/images/ui-icons_888888_256x240.png +0 -0
- data/coverage/assets/{0.10.1 → 0.10.2}/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/coverage/index.html +17490 -3213
- data/doc/Contentful.html +3 -3
- data/doc/Contentful/AccessDenied.html +1 -1
- data/doc/Contentful/Array.html +1 -1
- data/doc/Contentful/ArrayCoercion.html +7 -7
- data/doc/Contentful/ArrayLike.html +1 -1
- data/doc/Contentful/Asset.html +1 -1
- data/doc/Contentful/BadGateway.html +159 -0
- data/doc/Contentful/BadRequest.html +1 -1
- data/doc/Contentful/BaseCoercion.html +1 -1
- data/doc/Contentful/BaseResource.html +2 -2
- data/doc/Contentful/BooleanCoercion.html +1 -1
- data/doc/Contentful/Client.html +20 -26
- data/doc/Contentful/ContentType.html +7 -1
- data/doc/Contentful/ContentTypeCache.html +1 -1
- data/doc/Contentful/DateCoercion.html +1 -1
- data/doc/Contentful/DeletedAsset.html +1 -1
- data/doc/Contentful/DeletedEntry.html +1 -1
- data/doc/Contentful/Entry.html +1 -1
- data/doc/Contentful/Error.html +16 -28
- data/doc/Contentful/Field.html +1 -1
- data/doc/Contentful/FieldsResource.html +1 -1
- data/doc/Contentful/File.html +8 -308
- data/doc/Contentful/FloatCoercion.html +1 -1
- data/doc/Contentful/IntegerCoercion.html +1 -1
- data/doc/Contentful/Link.html +1 -1
- data/doc/Contentful/LinkCoercion.html +1 -1
- data/doc/Contentful/Locale.html +1 -1
- data/doc/Contentful/Location.html +1 -1
- data/doc/Contentful/LocationCoercion.html +1 -1
- data/doc/Contentful/NotFound.html +1 -1
- data/doc/Contentful/ObjectCoercion.html +2 -2
- data/doc/Contentful/RateLimitExceeded.html +183 -2
- data/doc/Contentful/Request.html +1 -1
- data/doc/Contentful/ResourceBuilder.html +1 -1
- data/doc/Contentful/Response.html +72 -1
- data/doc/Contentful/ServerError.html +1 -1
- data/doc/Contentful/ServiceUnavailable.html +1 -1
- data/doc/Contentful/Space.html +1 -1
- data/doc/Contentful/StringCoercion.html +1 -1
- data/doc/Contentful/Support.html +49 -27
- data/doc/Contentful/SymbolCoercion.html +1 -1
- data/doc/Contentful/Sync.html +1 -1
- data/doc/Contentful/SyncPage.html +1 -1
- data/doc/Contentful/TextCoercion.html +1 -1
- data/doc/Contentful/Unauthorized.html +1 -1
- data/doc/Contentful/UnparsableJson.html +1 -1
- data/doc/Contentful/UnparsableResource.html +1 -1
- data/doc/_index.html +8 -1
- data/doc/class_list.html +1 -1
- data/doc/file.CHANGELOG.html +15 -1
- data/doc/file.LICENSE.html +1 -1
- data/doc/file.README.html +8 -1
- data/doc/index.html +8 -1
- data/doc/method_list.html +147 -155
- data/doc/top-level-namespace.html +1 -1
- data/lib/contentful/asset.rb +2 -2
- data/lib/contentful/base_resource.rb +3 -3
- data/lib/contentful/client.rb +3 -3
- data/lib/contentful/coercions.rb +1 -20
- data/lib/contentful/content_type.rb +2 -0
- data/lib/contentful/entry.rb +4 -2
- data/lib/contentful/error.rb +168 -29
- data/lib/contentful/fields_resource.rb +8 -5
- data/lib/contentful/file.rb +14 -6
- data/lib/contentful/response.rb +5 -4
- data/lib/contentful/support.rb +4 -1
- data/lib/contentful/version.rb +1 -1
- data/spec/asset_spec.rb +9 -0
- data/spec/content_type_spec.rb +10 -0
- data/spec/deleted_asset_spec.rb +10 -0
- data/spec/deleted_entry_spec.rb +10 -0
- data/spec/entry_spec.rb +11 -0
- data/spec/error_class_spec.rb +244 -3
- data/spec/field_spec.rb +21 -0
- data/spec/file_spec.rb +10 -0
- data/spec/fixtures/json_responses/400_details_errors_object.json +14 -0
- data/spec/fixtures/json_responses/400_details_errors_string.json +12 -0
- data/spec/fixtures/json_responses/400_details_string.json +8 -0
- data/spec/fixtures/json_responses/403_reasons.json +13 -0
- data/spec/fixtures/json_responses/404_id.json +11 -0
- data/spec/fixtures/json_responses/404_type.json +10 -0
- data/spec/fixtures/json_responses/default_400.json +7 -0
- data/spec/fixtures/json_responses/default_401.json +7 -0
- data/spec/fixtures/json_responses/default_403.json +7 -0
- data/spec/fixtures/json_responses/default_404.json +7 -0
- data/spec/fixtures/json_responses/default_429.json +7 -0
- data/spec/fixtures/json_responses/default_500.json +7 -0
- data/spec/fixtures/json_responses/default_502.json +7 -0
- data/spec/fixtures/json_responses/default_503.json +7 -0
- data/spec/fixtures/json_responses/other_error.json +9 -0
- data/spec/fixtures/json_responses/other_error_no_details.json +8 -0
- data/spec/fixtures/json_responses/other_error_no_message.json +8 -0
- data/spec/fixtures/json_responses/other_error_no_request_id.json +8 -0
- data/spec/fixtures/json_responses/other_error_nothing.json +6 -0
- data/spec/link_spec.rb +9 -0
- data/spec/support/json_responses.rb +4 -2
- metadata +66 -27
@@ -228,7 +228,7 @@
|
|
228
228
|
</div>
|
229
229
|
|
230
230
|
<div id="footer">
|
231
|
-
Generated on
|
231
|
+
Generated on Tue Oct 24 14:05:58 2017 by
|
232
232
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
233
233
|
0.9.9 (ruby-2.4.1).
|
234
234
|
</div>
|
@@ -147,7 +147,7 @@ href="https://www.contentful.com/developers/documentation/content-delivery-api/h
|
|
147
147
|
</div>
|
148
148
|
|
149
149
|
<div id="footer">
|
150
|
-
Generated on
|
150
|
+
Generated on Tue Oct 24 14:05:59 2017 by
|
151
151
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
152
152
|
0.9.9 (ruby-2.4.1).
|
153
153
|
</div>
|
@@ -147,7 +147,7 @@ href="https://www.contentful.com/developers/documentation/content-delivery-api/h
|
|
147
147
|
</div>
|
148
148
|
|
149
149
|
<div id="footer">
|
150
|
-
Generated on
|
150
|
+
Generated on Tue Oct 24 14:05:59 2017 by
|
151
151
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
152
152
|
0.9.9 (ruby-2.4.1).
|
153
153
|
</div>
|
data/doc/Contentful/Entry.html
CHANGED
@@ -266,7 +266,7 @@
|
|
266
266
|
</div>
|
267
267
|
|
268
268
|
<div id="footer">
|
269
|
-
Generated on
|
269
|
+
Generated on Tue Oct 24 14:05:58 2017 by
|
270
270
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
271
271
|
0.9.9 (ruby-2.4.1).
|
272
272
|
</div>
|
data/doc/Contentful/Error.html
CHANGED
@@ -115,7 +115,7 @@ Contentful::Error or inherit from Contentful::Error</p>
|
|
115
115
|
|
116
116
|
</div><div id="subclasses">
|
117
117
|
<h2>Direct Known Subclasses</h2>
|
118
|
-
<p class="children"><span class='object_link'><a href="AccessDenied.html" title="Contentful::AccessDenied (class)">AccessDenied</a></span>, <span class='object_link'><a href="BadRequest.html" title="Contentful::BadRequest (class)">BadRequest</a></span>, <span class='object_link'><a href="NotFound.html" title="Contentful::NotFound (class)">NotFound</a></span>, <span class='object_link'><a href="RateLimitExceeded.html" title="Contentful::RateLimitExceeded (class)">RateLimitExceeded</a></span>, <span class='object_link'><a href="ServerError.html" title="Contentful::ServerError (class)">ServerError</a></span>, <span class='object_link'><a href="ServiceUnavailable.html" title="Contentful::ServiceUnavailable (class)">ServiceUnavailable</a></span>, <span class='object_link'><a href="Unauthorized.html" title="Contentful::Unauthorized (class)">Unauthorized</a></span>, <span class='object_link'><a href="UnparsableJson.html" title="Contentful::UnparsableJson (class)">UnparsableJson</a></span></p>
|
118
|
+
<p class="children"><span class='object_link'><a href="AccessDenied.html" title="Contentful::AccessDenied (class)">AccessDenied</a></span>, <span class='object_link'><a href="BadGateway.html" title="Contentful::BadGateway (class)">BadGateway</a></span>, <span class='object_link'><a href="BadRequest.html" title="Contentful::BadRequest (class)">BadRequest</a></span>, <span class='object_link'><a href="NotFound.html" title="Contentful::NotFound (class)">NotFound</a></span>, <span class='object_link'><a href="RateLimitExceeded.html" title="Contentful::RateLimitExceeded (class)">RateLimitExceeded</a></span>, <span class='object_link'><a href="ServerError.html" title="Contentful::ServerError (class)">ServerError</a></span>, <span class='object_link'><a href="ServiceUnavailable.html" title="Contentful::ServiceUnavailable (class)">ServiceUnavailable</a></span>, <span class='object_link'><a href="Unauthorized.html" title="Contentful::Unauthorized (class)">Unauthorized</a></span>, <span class='object_link'><a href="UnparsableJson.html" title="Contentful::UnparsableJson (class)">UnparsableJson</a></span></p>
|
119
119
|
</div>
|
120
120
|
|
121
121
|
|
@@ -269,7 +269,7 @@ href="404">Contentful::Error</a>.</p>
|
|
269
269
|
|
270
270
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_response'>response</span><span class='rparen'>)</span>
|
271
271
|
<span class='ivar'>@response</span> <span class='op'>=</span> <span class='id identifier rubyid_response'>response</span>
|
272
|
-
<span class='kw'>super</span> <span class='
|
272
|
+
<span class='kw'>super</span> <span class='id identifier rubyid_best_available_message'>best_available_message</span>
|
273
273
|
<span class='kw'>end</span></pre>
|
274
274
|
</td>
|
275
275
|
</tr>
|
@@ -371,36 +371,24 @@ href="404">Contentful::Error</a></p>
|
|
371
371
|
24
|
372
372
|
25
|
373
373
|
26
|
374
|
-
27
|
375
|
-
28
|
376
|
-
29
|
377
|
-
30
|
378
|
-
31
|
379
|
-
32
|
380
|
-
33</pre>
|
374
|
+
27</pre>
|
381
375
|
</td>
|
382
376
|
<td>
|
383
377
|
<pre class="code"><span class="info file"># File 'lib/contentful/error.rb', line 14</span>
|
384
378
|
|
385
379
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='op'>[]</span><span class='lparen'>(</span><span class='id identifier rubyid_error_status_code'>error_status_code</span><span class='rparen'>)</span>
|
386
|
-
<span class='
|
387
|
-
|
388
|
-
<span class='const'><span class='object_link'><a href="
|
389
|
-
|
390
|
-
<span class='const'><span class='object_link'><a href="
|
391
|
-
|
392
|
-
<span class='const'><span class='object_link'><a href="
|
393
|
-
|
394
|
-
<span class='const'><span class='object_link'><a href="
|
395
|
-
<span class='
|
396
|
-
|
397
|
-
<span class='
|
398
|
-
<span class='const'><span class='object_link'><a href="ServerError.html" title="Contentful::ServerError (class)">ServerError</a></span></span>
|
399
|
-
<span class='kw'>when</span> <span class='int'>503</span>
|
400
|
-
<span class='const'><span class='object_link'><a href="ServiceUnavailable.html" title="Contentful::ServiceUnavailable (class)">ServiceUnavailable</a></span></span>
|
401
|
-
<span class='kw'>else</span>
|
402
|
-
<span class='const'><span class='object_link'><a href="" title="Contentful::Error (class)">Error</a></span></span>
|
403
|
-
<span class='kw'>end</span>
|
380
|
+
<span class='id identifier rubyid_errors'>errors</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
381
|
+
<span class='int'>400</span> <span class='op'>=></span> <span class='const'><span class='object_link'><a href="BadRequest.html" title="Contentful::BadRequest (class)">BadRequest</a></span></span><span class='comma'>,</span>
|
382
|
+
<span class='int'>401</span> <span class='op'>=></span> <span class='const'><span class='object_link'><a href="Unauthorized.html" title="Contentful::Unauthorized (class)">Unauthorized</a></span></span><span class='comma'>,</span>
|
383
|
+
<span class='int'>403</span> <span class='op'>=></span> <span class='const'><span class='object_link'><a href="AccessDenied.html" title="Contentful::AccessDenied (class)">AccessDenied</a></span></span><span class='comma'>,</span>
|
384
|
+
<span class='int'>404</span> <span class='op'>=></span> <span class='const'><span class='object_link'><a href="NotFound.html" title="Contentful::NotFound (class)">NotFound</a></span></span><span class='comma'>,</span>
|
385
|
+
<span class='int'>429</span> <span class='op'>=></span> <span class='const'><span class='object_link'><a href="RateLimitExceeded.html" title="Contentful::RateLimitExceeded (class)">RateLimitExceeded</a></span></span><span class='comma'>,</span>
|
386
|
+
<span class='int'>500</span> <span class='op'>=></span> <span class='const'><span class='object_link'><a href="ServerError.html" title="Contentful::ServerError (class)">ServerError</a></span></span><span class='comma'>,</span>
|
387
|
+
<span class='int'>502</span> <span class='op'>=></span> <span class='const'><span class='object_link'><a href="BadGateway.html" title="Contentful::BadGateway (class)">BadGateway</a></span></span><span class='comma'>,</span>
|
388
|
+
<span class='int'>503</span> <span class='op'>=></span> <span class='const'><span class='object_link'><a href="ServiceUnavailable.html" title="Contentful::ServiceUnavailable (class)">ServiceUnavailable</a></span></span>
|
389
|
+
<span class='rbrace'>}</span>
|
390
|
+
|
391
|
+
<span class='id identifier rubyid_errors'>errors</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span><span class='lparen'>(</span><span class='id identifier rubyid_error_status_code'>error_status_code</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='id identifier rubyid_errors'>errors</span><span class='lbracket'>[</span><span class='id identifier rubyid_error_status_code'>error_status_code</span><span class='rbracket'>]</span> <span class='op'>:</span> <span class='const'><span class='object_link'><a href="" title="Contentful::Error (class)">Error</a></span></span>
|
404
392
|
<span class='kw'>end</span></pre>
|
405
393
|
</td>
|
406
394
|
</tr>
|
@@ -412,7 +400,7 @@ href="404">Contentful::Error</a></p>
|
|
412
400
|
</div>
|
413
401
|
|
414
402
|
<div id="footer">
|
415
|
-
Generated on
|
403
|
+
Generated on Tue Oct 24 14:05:58 2017 by
|
416
404
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
417
405
|
0.9.9 (ruby-2.4.1).
|
418
406
|
</div>
|
data/doc/Contentful/Field.html
CHANGED
@@ -917,7 +917,7 @@ href="https://www.contentful.com/developers/documentation/content-management-api
|
|
917
917
|
</div>
|
918
918
|
|
919
919
|
<div id="footer">
|
920
|
-
Generated on
|
920
|
+
Generated on Tue Oct 24 14:05:58 2017 by
|
921
921
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
922
922
|
0.9.9 (ruby-2.4.1).
|
923
923
|
</div>
|
@@ -573,7 +573,7 @@
|
|
573
573
|
</div>
|
574
574
|
|
575
575
|
<div id="footer">
|
576
|
-
Generated on
|
576
|
+
Generated on Tue Oct 24 14:05:59 2017 by
|
577
577
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
578
578
|
0.9.9 (ruby-2.4.1).
|
579
579
|
</div>
|
data/doc/Contentful/File.html
CHANGED
@@ -114,127 +114,6 @@
|
|
114
114
|
|
115
115
|
|
116
116
|
|
117
|
-
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
118
|
-
<ul class="summary">
|
119
|
-
|
120
|
-
<li class="public ">
|
121
|
-
<span class="summary_signature">
|
122
|
-
|
123
|
-
<a href="#content_type-instance_method" title="#content_type (instance method)">#<strong>content_type</strong> ⇒ Object </a>
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
</span>
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
<span class="note title readonly">readonly</span>
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
<span class="summary_desc"><div class='inline'>
|
143
|
-
<p>Returns the value of attribute content_type.</p>
|
144
|
-
</div></span>
|
145
|
-
|
146
|
-
</li>
|
147
|
-
|
148
|
-
|
149
|
-
<li class="public ">
|
150
|
-
<span class="summary_signature">
|
151
|
-
|
152
|
-
<a href="#details-instance_method" title="#details (instance method)">#<strong>details</strong> ⇒ Object </a>
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
</span>
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
<span class="note title readonly">readonly</span>
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
<span class="summary_desc"><div class='inline'>
|
172
|
-
<p>Returns the value of attribute details.</p>
|
173
|
-
</div></span>
|
174
|
-
|
175
|
-
</li>
|
176
|
-
|
177
|
-
|
178
|
-
<li class="public ">
|
179
|
-
<span class="summary_signature">
|
180
|
-
|
181
|
-
<a href="#file_name-instance_method" title="#file_name (instance method)">#<strong>file_name</strong> ⇒ Object </a>
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
</span>
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
<span class="note title readonly">readonly</span>
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
<span class="summary_desc"><div class='inline'>
|
201
|
-
<p>Returns the value of attribute file_name.</p>
|
202
|
-
</div></span>
|
203
|
-
|
204
|
-
</li>
|
205
|
-
|
206
|
-
|
207
|
-
<li class="public ">
|
208
|
-
<span class="summary_signature">
|
209
|
-
|
210
|
-
<a href="#url-instance_method" title="#url (instance method)">#<strong>url</strong> ⇒ Object </a>
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
</span>
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
<span class="note title readonly">readonly</span>
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
<span class="summary_desc"><div class='inline'>
|
230
|
-
<p>Returns the value of attribute url.</p>
|
231
|
-
</div></span>
|
232
|
-
|
233
|
-
</li>
|
234
|
-
|
235
|
-
|
236
|
-
</ul>
|
237
|
-
|
238
117
|
|
239
118
|
|
240
119
|
|
@@ -249,7 +128,7 @@
|
|
249
128
|
<li class="public ">
|
250
129
|
<span class="summary_signature">
|
251
130
|
|
252
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(json) ⇒ File </a>
|
131
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(json, configuration) ⇒ File </a>
|
253
132
|
|
254
133
|
|
255
134
|
|
@@ -281,7 +160,7 @@
|
|
281
160
|
<div class="method_details first">
|
282
161
|
<h3 class="signature first" id="initialize-instance_method">
|
283
162
|
|
284
|
-
#<strong>initialize</strong>(json) ⇒ <tt><span class='object_link'><a href="" title="Contentful::File (class)">File</a></span></tt>
|
163
|
+
#<strong>initialize</strong>(json, configuration) ⇒ <tt><span class='object_link'><a href="" title="Contentful::File (class)">File</a></span></tt>
|
285
164
|
|
286
165
|
|
287
166
|
|
@@ -304,211 +183,32 @@
|
|
304
183
|
<pre class="lines">
|
305
184
|
|
306
185
|
|
186
|
+
4
|
307
187
|
5
|
308
188
|
6
|
309
189
|
7
|
310
|
-
8
|
311
|
-
9
|
312
|
-
10</pre>
|
313
|
-
</td>
|
314
|
-
<td>
|
315
|
-
<pre class="code"><span class="info file"># File 'lib/contentful/file.rb', line 5</span>
|
316
|
-
|
317
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_json'>json</span><span class='rparen'>)</span>
|
318
|
-
<span class='ivar'>@file_name</span> <span class='op'>=</span> <span class='id identifier rubyid_json'>json</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>fileName</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
319
|
-
<span class='ivar'>@content_type</span> <span class='op'>=</span> <span class='id identifier rubyid_json'>json</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>contentType</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
320
|
-
<span class='ivar'>@details</span> <span class='op'>=</span> <span class='id identifier rubyid_json'>json</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>details</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
321
|
-
<span class='ivar'>@url</span> <span class='op'>=</span> <span class='id identifier rubyid_json'>json</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>url</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
322
|
-
<span class='kw'>end</span></pre>
|
323
|
-
</td>
|
324
|
-
</tr>
|
325
|
-
</table>
|
326
|
-
</div>
|
327
|
-
|
328
|
-
</div>
|
329
|
-
|
330
|
-
<div id="instance_attr_details" class="attr_details">
|
331
|
-
<h2>Instance Attribute Details</h2>
|
332
|
-
|
333
|
-
|
334
|
-
<span id=""></span>
|
335
|
-
<div class="method_details first">
|
336
|
-
<h3 class="signature first" id="content_type-instance_method">
|
337
|
-
|
338
|
-
#<strong>content_type</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
</h3><div class="docstring">
|
345
|
-
<div class="discussion">
|
346
|
-
|
347
|
-
<p>Returns the value of attribute content_type</p>
|
348
|
-
|
349
|
-
|
350
|
-
</div>
|
351
|
-
</div>
|
352
|
-
<div class="tags">
|
353
|
-
|
354
|
-
|
355
|
-
</div><table class="source_code">
|
356
|
-
<tr>
|
357
|
-
<td>
|
358
|
-
<pre class="lines">
|
359
|
-
|
360
|
-
|
361
|
-
4
|
362
|
-
5
|
363
|
-
6</pre>
|
190
|
+
8</pre>
|
364
191
|
</td>
|
365
192
|
<td>
|
366
193
|
<pre class="code"><span class="info file"># File 'lib/contentful/file.rb', line 4</span>
|
367
194
|
|
368
|
-
<span class='kw'>def</span> <span class='id identifier
|
369
|
-
<span class='ivar'>@
|
370
|
-
<span class='kw'>end</span></pre>
|
371
|
-
</td>
|
372
|
-
</tr>
|
373
|
-
</table>
|
374
|
-
</div>
|
375
|
-
|
376
|
-
|
377
|
-
<span id=""></span>
|
378
|
-
<div class="method_details ">
|
379
|
-
<h3 class="signature " id="details-instance_method">
|
380
|
-
|
381
|
-
#<strong>details</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
</h3><div class="docstring">
|
388
|
-
<div class="discussion">
|
389
|
-
|
390
|
-
<p>Returns the value of attribute details</p>
|
391
|
-
|
392
|
-
|
393
|
-
</div>
|
394
|
-
</div>
|
395
|
-
<div class="tags">
|
396
|
-
|
397
|
-
|
398
|
-
</div><table class="source_code">
|
399
|
-
<tr>
|
400
|
-
<td>
|
401
|
-
<pre class="lines">
|
402
|
-
|
403
|
-
|
404
|
-
4
|
405
|
-
5
|
406
|
-
6</pre>
|
407
|
-
</td>
|
408
|
-
<td>
|
409
|
-
<pre class="code"><span class="info file"># File 'lib/contentful/file.rb', line 4</span>
|
410
|
-
|
411
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_details'>details</span>
|
412
|
-
<span class='ivar'>@details</span>
|
413
|
-
<span class='kw'>end</span></pre>
|
414
|
-
</td>
|
415
|
-
</tr>
|
416
|
-
</table>
|
417
|
-
</div>
|
418
|
-
|
419
|
-
|
420
|
-
<span id=""></span>
|
421
|
-
<div class="method_details ">
|
422
|
-
<h3 class="signature " id="file_name-instance_method">
|
423
|
-
|
424
|
-
#<strong>file_name</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
</h3><div class="docstring">
|
431
|
-
<div class="discussion">
|
432
|
-
|
433
|
-
<p>Returns the value of attribute file_name</p>
|
434
|
-
|
435
|
-
|
436
|
-
</div>
|
437
|
-
</div>
|
438
|
-
<div class="tags">
|
439
|
-
|
195
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_json'>json</span><span class='comma'>,</span> <span class='id identifier rubyid_configuration'>configuration</span><span class='rparen'>)</span>
|
196
|
+
<span class='ivar'>@configuration</span> <span class='op'>=</span> <span class='id identifier rubyid_configuration'>configuration</span>
|
440
197
|
|
441
|
-
</
|
442
|
-
<tr>
|
443
|
-
<td>
|
444
|
-
<pre class="lines">
|
445
|
-
|
446
|
-
|
447
|
-
4
|
448
|
-
5
|
449
|
-
6</pre>
|
450
|
-
</td>
|
451
|
-
<td>
|
452
|
-
<pre class="code"><span class="info file"># File 'lib/contentful/file.rb', line 4</span>
|
453
|
-
|
454
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_file_name'>file_name</span>
|
455
|
-
<span class='ivar'>@file_name</span>
|
198
|
+
<span class='id identifier rubyid_define_fields!'>define_fields!</span><span class='lparen'>(</span><span class='id identifier rubyid_json'>json</span><span class='rparen'>)</span>
|
456
199
|
<span class='kw'>end</span></pre>
|
457
200
|
</td>
|
458
201
|
</tr>
|
459
202
|
</table>
|
460
203
|
</div>
|
461
|
-
|
462
|
-
|
463
|
-
<span id=""></span>
|
464
|
-
<div class="method_details ">
|
465
|
-
<h3 class="signature " id="url-instance_method">
|
466
|
-
|
467
|
-
#<strong>url</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
468
|
-
|
469
|
-
|
470
204
|
|
471
|
-
|
472
|
-
|
473
|
-
</h3><div class="docstring">
|
474
|
-
<div class="discussion">
|
475
|
-
|
476
|
-
<p>Returns the value of attribute url</p>
|
477
|
-
|
478
|
-
|
479
|
-
</div>
|
480
|
-
</div>
|
481
|
-
<div class="tags">
|
482
|
-
|
483
|
-
|
484
|
-
</div><table class="source_code">
|
485
|
-
<tr>
|
486
|
-
<td>
|
487
|
-
<pre class="lines">
|
488
|
-
|
489
|
-
|
490
|
-
4
|
491
|
-
5
|
492
|
-
6</pre>
|
493
|
-
</td>
|
494
|
-
<td>
|
495
|
-
<pre class="code"><span class="info file"># File 'lib/contentful/file.rb', line 4</span>
|
496
|
-
|
497
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_url'>url</span>
|
498
|
-
<span class='ivar'>@url</span>
|
499
|
-
<span class='kw'>end</span></pre>
|
500
|
-
</td>
|
501
|
-
</tr>
|
502
|
-
</table>
|
503
205
|
</div>
|
504
|
-
|
505
|
-
</div>
|
506
206
|
|
507
207
|
|
508
208
|
</div>
|
509
209
|
|
510
210
|
<div id="footer">
|
511
|
-
Generated on
|
211
|
+
Generated on Tue Oct 24 14:05:58 2017 by
|
512
212
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
513
213
|
0.9.9 (ruby-2.4.1).
|
514
214
|
</div>
|