apes 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/.travis-gemfile +1 -1
- data/.travis.yml +1 -4
- data/.yardopts +1 -1
- data/CHANGELOG.md +8 -0
- data/Gemfile +1 -1
- data/LICENSE.md +21 -0
- data/README.md +22 -16
- data/Rakefile +1 -1
- data/apes.gemspec +1 -1
- data/{doc → docs}/Apes.html +1 -1
- data/{doc → docs}/Apes/Concerns.html +1 -1
- data/{doc → docs}/Apes/Concerns/Errors.html +1 -1
- data/{doc → docs}/Apes/Concerns/Pagination.html +1 -1
- data/{doc → docs}/Apes/Concerns/Request.html +1 -1
- data/{doc → docs}/Apes/Concerns/Response.html +1 -1
- data/{doc → docs}/Apes/Controller.html +1 -1
- data/{doc → docs}/Apes/Errors.html +1 -1
- data/{doc → docs}/Apes/Errors/AuthenticationError.html +1 -1
- data/{doc → docs}/Apes/Errors/BadRequestError.html +1 -1
- data/{doc → docs}/Apes/Errors/BaseError.html +1 -1
- data/{doc → docs}/Apes/Errors/InvalidDataError.html +1 -1
- data/{doc → docs}/Apes/Errors/MissingDataError.html +1 -1
- data/{doc → docs}/Apes/Model.html +1 -1
- data/{doc → docs}/Apes/PaginationCursor.html +1 -1
- data/{doc → docs}/Apes/RuntimeConfiguration.html +1 -1
- data/{doc → docs}/Apes/Serializers.html +1 -1
- data/{doc → docs}/Apes/Serializers/JSON.html +1 -1
- data/{doc → docs}/Apes/Serializers/JWT.html +1 -1
- data/{doc → docs}/Apes/Serializers/List.html +1 -1
- data/{doc → docs}/Apes/UrlsParser.html +1 -1
- data/{doc → docs}/Apes/Validators.html +1 -1
- data/{doc → docs}/Apes/Validators/BaseValidator.html +1 -1
- data/{doc → docs}/Apes/Validators/BooleanValidator.html +1 -1
- data/{doc → docs}/Apes/Validators/EmailValidator.html +1 -1
- data/{doc → docs}/Apes/Validators/PhoneValidator.html +1 -1
- data/{doc → docs}/Apes/Validators/ReferenceValidator.html +1 -1
- data/{doc → docs}/Apes/Validators/TimestampValidator.html +1 -1
- data/{doc → docs}/Apes/Validators/UuidValidator.html +1 -1
- data/{doc → docs}/Apes/Validators/ZipCodeValidator.html +1 -1
- data/{doc → docs}/Apes/Version.html +1 -1
- data/{doc → docs}/_index.html +1 -1
- data/{doc → docs}/class_list.html +0 -0
- data/{doc → docs}/css/common.css +0 -0
- data/{doc → docs}/css/full_list.css +0 -0
- data/{doc → docs}/css/style.css +0 -0
- data/{doc → docs}/file.README.html +7 -5
- data/{doc → docs}/file_list.html +0 -0
- data/{doc → docs}/frames.html +0 -0
- data/{doc → docs}/index.html +7 -5
- data/{doc → docs}/js/app.js +0 -0
- data/{doc → docs}/js/full_list.js +0 -0
- data/{doc → docs}/js/jquery.js +0 -0
- data/{doc → docs}/method_list.html +0 -0
- data/{doc → docs}/top-level-namespace.html +1 -1
- data/lib/apes.rb +1 -1
- data/lib/apes/concerns/errors.rb +1 -1
- data/lib/apes/concerns/pagination.rb +1 -1
- data/lib/apes/concerns/request.rb +1 -1
- data/lib/apes/concerns/response.rb +1 -1
- data/lib/apes/controller.rb +1 -1
- data/lib/apes/errors.rb +1 -1
- data/lib/apes/model.rb +1 -1
- data/lib/apes/pagination_cursor.rb +1 -1
- data/lib/apes/runtime_configuration.rb +1 -1
- data/lib/apes/serializers.rb +1 -1
- data/lib/apes/urls_parser.rb +1 -1
- data/lib/apes/validators.rb +1 -1
- data/lib/apes/version.rb +2 -2
- data/spec/apes/controller_spec.rb +1 -1
- data/spec/apes/errors_spec.rb +1 -1
- data/spec/apes/models_spec.rb +1 -1
- data/spec/apes/pagination_cursor_spec.rb +1 -1
- data/spec/apes/runtime_configuration_spec.rb +1 -1
- data/spec/apes/serializers_spec.rb +1 -1
- data/spec/apes/urls_parser_spec.rb +1 -1
- data/spec/apes/validators_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +49 -75
- data/doc/ApplicationController.html +0 -547
- data/doc/Concerns.html +0 -128
- data/doc/Concerns/ErrorHandling.html +0 -826
- data/doc/Concerns/PaginationHandling.html +0 -463
- data/doc/Concerns/RequestHandling.html +0 -512
- data/doc/Concerns/ResponseHandling.html +0 -579
- data/doc/Errors.html +0 -126
- data/doc/Errors/AuthenticationError.html +0 -123
- data/doc/Errors/BadRequestError.html +0 -147
- data/doc/Errors/BaseError.html +0 -289
- data/doc/Errors/InvalidDataError.html +0 -147
- data/doc/Errors/MissingDataError.html +0 -147
- data/doc/Model.html +0 -315
- data/doc/PaginationCursor.html +0 -764
- data/doc/Serializers.html +0 -126
- data/doc/Serializers/JSON.html +0 -253
- data/doc/Serializers/JWT.html +0 -253
- data/doc/Serializers/List.html +0 -245
- data/doc/Validators.html +0 -126
- data/doc/Validators/BaseValidator.html +0 -209
- data/doc/Validators/BooleanValidator.html +0 -391
- data/doc/Validators/EmailValidator.html +0 -298
- data/doc/Validators/PhoneValidator.html +0 -313
- data/doc/Validators/ReferenceValidator.html +0 -284
- data/doc/Validators/TimestampValidator.html +0 -476
- data/doc/Validators/UuidValidator.html +0 -310
- data/doc/Validators/ZipCodeValidator.html +0 -310
@@ -1,579 +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: Concerns::ResponseHandling
|
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#!Concerns/ResponseHandling.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 (R)</a> »
|
35
|
-
<span class='title'><span class='object_link'><a href="../Concerns.html" title="Concerns (module)">Concerns</a></span></span>
|
36
|
-
»
|
37
|
-
<span class="title">ResponseHandling</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: Concerns::ResponseHandling
|
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/apes/concerns/response.rb</dd>
|
83
|
-
|
84
|
-
</dl>
|
85
|
-
<div class="clear"></div>
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
92
|
-
<ul class="summary">
|
93
|
-
|
94
|
-
<li class="public ">
|
95
|
-
<span class="summary_signature">
|
96
|
-
|
97
|
-
<a href="#included-instance_method" title="#included (instance method)">- (Object) <strong>included</strong> </a>
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
</span>
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute included.</p>
|
115
|
-
</div></span>
|
116
|
-
|
117
|
-
</li>
|
118
|
-
|
119
|
-
|
120
|
-
</ul>
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
<h2>
|
127
|
-
Instance Method Summary
|
128
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
129
|
-
</h2>
|
130
|
-
|
131
|
-
<ul class="summary">
|
132
|
-
|
133
|
-
<li class="public ">
|
134
|
-
<span class="summary_signature">
|
135
|
-
|
136
|
-
<a href="#response_data-instance_method" title="#response_data (instance method)">- (Object) <strong>response_data</strong>(default = nil) </a>
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
</span>
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
<span class="summary_desc"><div class='inline'>
|
151
|
-
</div></span>
|
152
|
-
|
153
|
-
</li>
|
154
|
-
|
155
|
-
|
156
|
-
<li class="public ">
|
157
|
-
<span class="summary_signature">
|
158
|
-
|
159
|
-
<a href="#response_include-instance_method" title="#response_include (instance method)">- (Object) <strong>response_include</strong>(object, template = nil) </a>
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
</span>
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
<span class="summary_desc"><div class='inline'>
|
174
|
-
</div></span>
|
175
|
-
|
176
|
-
</li>
|
177
|
-
|
178
|
-
|
179
|
-
<li class="public ">
|
180
|
-
<span class="summary_signature">
|
181
|
-
|
182
|
-
<a href="#response_included-instance_method" title="#response_included (instance method)">- (Object) <strong>response_included</strong>(default = nil) </a>
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
</span>
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
<span class="summary_desc"><div class='inline'>
|
197
|
-
</div></span>
|
198
|
-
|
199
|
-
</li>
|
200
|
-
|
201
|
-
|
202
|
-
<li class="public ">
|
203
|
-
<span class="summary_signature">
|
204
|
-
|
205
|
-
<a href="#response_links-instance_method" title="#response_links (instance method)">- (Object) <strong>response_links</strong>(default = nil) </a>
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
</span>
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
<span class="summary_desc"><div class='inline'>
|
220
|
-
</div></span>
|
221
|
-
|
222
|
-
</li>
|
223
|
-
|
224
|
-
|
225
|
-
<li class="public ">
|
226
|
-
<span class="summary_signature">
|
227
|
-
|
228
|
-
<a href="#response_meta-instance_method" title="#response_meta (instance method)">- (Object) <strong>response_meta</strong>(default = nil) </a>
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
</span>
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
<span class="summary_desc"><div class='inline'>
|
243
|
-
</div></span>
|
244
|
-
|
245
|
-
</li>
|
246
|
-
|
247
|
-
|
248
|
-
<li class="public ">
|
249
|
-
<span class="summary_signature">
|
250
|
-
|
251
|
-
<a href="#response_template_for-instance_method" title="#response_template_for (instance method)">- (Object) <strong>response_template_for</strong>(record) </a>
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
</span>
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
<span class="summary_desc"><div class='inline'>
|
266
|
-
</div></span>
|
267
|
-
|
268
|
-
</li>
|
269
|
-
|
270
|
-
|
271
|
-
<li class="public ">
|
272
|
-
<span class="summary_signature">
|
273
|
-
|
274
|
-
<a href="#response_timestamp-instance_method" title="#response_timestamp (instance method)">- (Object) <strong>response_timestamp</strong>(timestamp) </a>
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
</span>
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
<span class="summary_desc"><div class='inline'>
|
289
|
-
</div></span>
|
290
|
-
|
291
|
-
</li>
|
292
|
-
|
293
|
-
|
294
|
-
</ul>
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
<div id="instance_attr_details" class="attr_details">
|
299
|
-
<h2>Instance Attribute Details</h2>
|
300
|
-
|
301
|
-
|
302
|
-
<span id="included=-instance_method"></span>
|
303
|
-
<div class="method_details first">
|
304
|
-
<h3 class="signature first" id="included-instance_method">
|
305
|
-
|
306
|
-
- (<tt>Object</tt>) <strong>included</strong>
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
</h3><div class="docstring">
|
313
|
-
<div class="discussion">
|
314
|
-
<p>Returns the value of attribute included</p>
|
315
|
-
|
316
|
-
|
317
|
-
</div>
|
318
|
-
</div>
|
319
|
-
<div class="tags">
|
320
|
-
|
321
|
-
|
322
|
-
</div><table class="source_code">
|
323
|
-
<tr>
|
324
|
-
<td>
|
325
|
-
<pre class="lines">
|
326
|
-
|
327
|
-
|
328
|
-
8
|
329
|
-
9
|
330
|
-
10</pre>
|
331
|
-
</td>
|
332
|
-
<td>
|
333
|
-
<pre class="code"><span class="info file"># File 'lib/apes/concerns/response.rb', line 8</span>
|
334
|
-
|
335
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_included'>included</span>
|
336
|
-
<span class='ivar'>@included</span>
|
337
|
-
<span class='kw'>end</span></pre>
|
338
|
-
</td>
|
339
|
-
</tr>
|
340
|
-
</table>
|
341
|
-
</div>
|
342
|
-
|
343
|
-
</div>
|
344
|
-
|
345
|
-
|
346
|
-
<div id="instance_method_details" class="method_details_list">
|
347
|
-
<h2>Instance Method Details</h2>
|
348
|
-
|
349
|
-
|
350
|
-
<div class="method_details first">
|
351
|
-
<h3 class="signature first" id="response_data-instance_method">
|
352
|
-
|
353
|
-
- (<tt>Object</tt>) <strong>response_data</strong>(default = nil)
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
</h3><table class="source_code">
|
360
|
-
<tr>
|
361
|
-
<td>
|
362
|
-
<pre class="lines">
|
363
|
-
|
364
|
-
|
365
|
-
20
|
366
|
-
21
|
367
|
-
22</pre>
|
368
|
-
</td>
|
369
|
-
<td>
|
370
|
-
<pre class="code"><span class="info file"># File 'lib/apes/concerns/response.rb', line 20</span>
|
371
|
-
|
372
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_response_data'>response_data</span><span class='lparen'>(</span><span class='id identifier rubyid_default'>default</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
373
|
-
<span class='ivar'>@data</span> <span class='op'>||</span> <span class='id identifier rubyid_default'>default</span> <span class='op'>||</span> <span class='const'>HashWithIndifferentAccess</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
|
374
|
-
<span class='kw'>end</span></pre>
|
375
|
-
</td>
|
376
|
-
</tr>
|
377
|
-
</table>
|
378
|
-
</div>
|
379
|
-
|
380
|
-
<div class="method_details ">
|
381
|
-
<h3 class="signature " id="response_include-instance_method">
|
382
|
-
|
383
|
-
- (<tt>Object</tt>) <strong>response_include</strong>(object, template = nil)
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
</h3><table class="source_code">
|
390
|
-
<tr>
|
391
|
-
<td>
|
392
|
-
<pre class="lines">
|
393
|
-
|
394
|
-
|
395
|
-
32
|
396
|
-
33
|
397
|
-
34
|
398
|
-
35
|
399
|
-
36</pre>
|
400
|
-
</td>
|
401
|
-
<td>
|
402
|
-
<pre class="code"><span class="info file"># File 'lib/apes/concerns/response.rb', line 32</span>
|
403
|
-
|
404
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_response_include'>response_include</span><span class='lparen'>(</span><span class='id identifier rubyid_object'>object</span><span class='comma'>,</span> <span class='id identifier rubyid_template'>template</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
405
|
-
<span class='id identifier rubyid_controller'>controller</span><span class='period'>.</span><span class='id identifier rubyid_included'>included</span> <span class='op'>||=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
406
|
-
<span class='id identifier rubyid_controller'>controller</span><span class='period'>.</span><span class='id identifier rubyid_included'>included</span><span class='lbracket'>[</span><span class='id identifier rubyid_sprintf'>sprintf</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>%s:%s</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_response_template_for'>response_template_for</span><span class='lparen'>(</span><span class='id identifier rubyid_object'>object</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='id identifier rubyid_object'>object</span><span class='period'>.</span><span class='id identifier rubyid_to_param'>to_param</span><span class='rparen'>)</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='id identifier rubyid_object'>object</span><span class='comma'>,</span> <span class='id identifier rubyid_template'>template</span><span class='rbracket'>]</span>
|
407
|
-
<span class='id identifier rubyid_controller'>controller</span><span class='period'>.</span><span class='id identifier rubyid_included'>included</span>
|
408
|
-
<span class='kw'>end</span></pre>
|
409
|
-
</td>
|
410
|
-
</tr>
|
411
|
-
</table>
|
412
|
-
</div>
|
413
|
-
|
414
|
-
<div class="method_details ">
|
415
|
-
<h3 class="signature " id="response_included-instance_method">
|
416
|
-
|
417
|
-
- (<tt>Object</tt>) <strong>response_included</strong>(default = nil)
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
</h3><table class="source_code">
|
424
|
-
<tr>
|
425
|
-
<td>
|
426
|
-
<pre class="lines">
|
427
|
-
|
428
|
-
|
429
|
-
28
|
430
|
-
29
|
431
|
-
30</pre>
|
432
|
-
</td>
|
433
|
-
<td>
|
434
|
-
<pre class="code"><span class="info file"># File 'lib/apes/concerns/response.rb', line 28</span>
|
435
|
-
|
436
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_response_included'>response_included</span><span class='lparen'>(</span><span class='id identifier rubyid_default'>default</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
437
|
-
<span class='id identifier rubyid_controller'>controller</span><span class='period'>.</span><span class='id identifier rubyid_included'>included</span> <span class='op'>||</span> <span class='id identifier rubyid_default'>default</span> <span class='op'>||</span> <span class='const'>HashWithIndifferentAccess</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
|
438
|
-
<span class='kw'>end</span></pre>
|
439
|
-
</td>
|
440
|
-
</tr>
|
441
|
-
</table>
|
442
|
-
</div>
|
443
|
-
|
444
|
-
<div class="method_details ">
|
445
|
-
<h3 class="signature " id="response_links-instance_method">
|
446
|
-
|
447
|
-
- (<tt>Object</tt>) <strong>response_links</strong>(default = nil)
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
</h3><table class="source_code">
|
454
|
-
<tr>
|
455
|
-
<td>
|
456
|
-
<pre class="lines">
|
457
|
-
|
458
|
-
|
459
|
-
24
|
460
|
-
25
|
461
|
-
26</pre>
|
462
|
-
</td>
|
463
|
-
<td>
|
464
|
-
<pre class="code"><span class="info file"># File 'lib/apes/concerns/response.rb', line 24</span>
|
465
|
-
|
466
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_response_links'>response_links</span><span class='lparen'>(</span><span class='id identifier rubyid_default'>default</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
467
|
-
<span class='ivar'>@links</span> <span class='op'>||</span> <span class='id identifier rubyid_default'>default</span> <span class='op'>||</span> <span class='const'>HashWithIndifferentAccess</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
|
468
|
-
<span class='kw'>end</span></pre>
|
469
|
-
</td>
|
470
|
-
</tr>
|
471
|
-
</table>
|
472
|
-
</div>
|
473
|
-
|
474
|
-
<div class="method_details ">
|
475
|
-
<h3 class="signature " id="response_meta-instance_method">
|
476
|
-
|
477
|
-
- (<tt>Object</tt>) <strong>response_meta</strong>(default = nil)
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
</h3><table class="source_code">
|
484
|
-
<tr>
|
485
|
-
<td>
|
486
|
-
<pre class="lines">
|
487
|
-
|
488
|
-
|
489
|
-
16
|
490
|
-
17
|
491
|
-
18</pre>
|
492
|
-
</td>
|
493
|
-
<td>
|
494
|
-
<pre class="code"><span class="info file"># File 'lib/apes/concerns/response.rb', line 16</span>
|
495
|
-
|
496
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_response_meta'>response_meta</span><span class='lparen'>(</span><span class='id identifier rubyid_default'>default</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
497
|
-
<span class='ivar'>@meta</span> <span class='op'>||</span> <span class='id identifier rubyid_default'>default</span> <span class='op'>||</span> <span class='const'>HashWithIndifferentAccess</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
|
498
|
-
<span class='kw'>end</span></pre>
|
499
|
-
</td>
|
500
|
-
</tr>
|
501
|
-
</table>
|
502
|
-
</div>
|
503
|
-
|
504
|
-
<div class="method_details ">
|
505
|
-
<h3 class="signature " id="response_template_for-instance_method">
|
506
|
-
|
507
|
-
- (<tt>Object</tt>) <strong>response_template_for</strong>(record)
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
</h3><table class="source_code">
|
514
|
-
<tr>
|
515
|
-
<td>
|
516
|
-
<pre class="lines">
|
517
|
-
|
518
|
-
|
519
|
-
10
|
520
|
-
11
|
521
|
-
12
|
522
|
-
13
|
523
|
-
14</pre>
|
524
|
-
</td>
|
525
|
-
<td>
|
526
|
-
<pre class="code"><span class="info file"># File 'lib/apes/concerns/response.rb', line 10</span>
|
527
|
-
|
528
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_response_template_for'>response_template_for</span><span class='lparen'>(</span><span class='id identifier rubyid_record'>record</span><span class='rparen'>)</span>
|
529
|
-
<span class='kw'>return</span> <span class='ivar'>@object_template</span> <span class='kw'>if</span> <span class='ivar'>@object_template</span>
|
530
|
-
<span class='id identifier rubyid_record'>record</span> <span class='op'>=</span> <span class='id identifier rubyid_record'>record</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span> <span class='kw'>if</span> <span class='id identifier rubyid_record'>record</span><span class='period'>.</span><span class='id identifier rubyid_respond_to?'>respond_to?</span><span class='lparen'>(</span><span class='symbol'>:first</span><span class='rparen'>)</span>
|
531
|
-
<span class='id identifier rubyid_record'>record</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_underscore'>underscore</span><span class='period'>.</span><span class='id identifier rubyid_gsub'>gsub</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>/</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>_</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
532
|
-
<span class='kw'>end</span></pre>
|
533
|
-
</td>
|
534
|
-
</tr>
|
535
|
-
</table>
|
536
|
-
</div>
|
537
|
-
|
538
|
-
<div class="method_details ">
|
539
|
-
<h3 class="signature " id="response_timestamp-instance_method">
|
540
|
-
|
541
|
-
- (<tt>Object</tt>) <strong>response_timestamp</strong>(timestamp)
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
</h3><table class="source_code">
|
548
|
-
<tr>
|
549
|
-
<td>
|
550
|
-
<pre class="lines">
|
551
|
-
|
552
|
-
|
553
|
-
38
|
554
|
-
39
|
555
|
-
40</pre>
|
556
|
-
</td>
|
557
|
-
<td>
|
558
|
-
<pre class="code"><span class="info file"># File 'lib/apes/concerns/response.rb', line 38</span>
|
559
|
-
|
560
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_response_timestamp'>response_timestamp</span><span class='lparen'>(</span><span class='id identifier rubyid_timestamp'>timestamp</span><span class='rparen'>)</span>
|
561
|
-
<span class='id identifier rubyid_timestamp'>timestamp</span><span class='period'>.</span><span class='id identifier rubyid_safe_send'>safe_send</span><span class='lparen'>(</span><span class='symbol'>:strftime</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>%FT%T.%L%z</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
562
|
-
<span class='kw'>end</span></pre>
|
563
|
-
</td>
|
564
|
-
</tr>
|
565
|
-
</table>
|
566
|
-
</div>
|
567
|
-
|
568
|
-
</div>
|
569
|
-
|
570
|
-
</div>
|
571
|
-
|
572
|
-
<div id="footer">
|
573
|
-
Generated on Sat May 21 11:01:52 2016 by
|
574
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
575
|
-
0.8.7.6 (ruby-2.3.0).
|
576
|
-
</div>
|
577
|
-
|
578
|
-
</body>
|
579
|
-
</html>
|