ae_easy-core 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +10 -0
- data/.travis.yml +7 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +57 -0
- data/LICENSE +21 -0
- data/README.md +16 -0
- data/Rakefile +22 -0
- data/ae_easy-core.gemspec +49 -0
- data/doc/AeEasy.html +117 -0
- data/doc/AeEasy/Core.html +1622 -0
- data/doc/AeEasy/Core/Config.html +311 -0
- data/doc/AeEasy/Core/Exception.html +117 -0
- data/doc/AeEasy/Core/Exception/OutdatedError.html +135 -0
- data/doc/AeEasy/Core/Helper.html +117 -0
- data/doc/AeEasy/Core/Helper/Cookie.html +1070 -0
- data/doc/AeEasy/Core/Mock.html +282 -0
- data/doc/AeEasy/Core/Mock/FakeDb.html +2316 -0
- data/doc/AeEasy/Core/Mock/FakeExecutor.html +2226 -0
- data/doc/AeEasy/Core/Mock/FakeParser.html +275 -0
- data/doc/AeEasy/Core/Mock/FakeSeeder.html +269 -0
- data/doc/AeEasy/Core/Plugin.html +117 -0
- data/doc/AeEasy/Core/Plugin/CollectionVault.html +299 -0
- data/doc/AeEasy/Core/Plugin/ConfigBehavior.html +541 -0
- data/doc/AeEasy/Core/Plugin/ContextIntegrator.html +445 -0
- data/doc/AeEasy/Core/Plugin/InitializeHook.html +220 -0
- data/doc/AeEasy/Core/Plugin/Parser.html +259 -0
- data/doc/AeEasy/Core/Plugin/ParserBehavior.html +420 -0
- data/doc/AeEasy/Core/Plugin/Seeder.html +635 -0
- data/doc/AeEasy/Core/Plugin/SeederBehavior.html +282 -0
- data/doc/AeEasy/Core/SmartCollection.html +1386 -0
- data/doc/_index.html +329 -0
- data/doc/class_list.html +51 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +58 -0
- data/doc/css/style.css +496 -0
- data/doc/file.README.html +91 -0
- data/doc/file_list.html +56 -0
- data/doc/frames.html +17 -0
- data/doc/index.html +91 -0
- data/doc/js/app.js +292 -0
- data/doc/js/full_list.js +216 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +811 -0
- data/doc/top-level-namespace.html +110 -0
- data/lib/ae_easy/core.rb +241 -0
- data/lib/ae_easy/core/config.rb +25 -0
- data/lib/ae_easy/core/exception.rb +8 -0
- data/lib/ae_easy/core/exception/outdated_error.rb +9 -0
- data/lib/ae_easy/core/helper.rb +8 -0
- data/lib/ae_easy/core/helper/cookie.rb +209 -0
- data/lib/ae_easy/core/mock.rb +44 -0
- data/lib/ae_easy/core/mock/fake_db.rb +280 -0
- data/lib/ae_easy/core/mock/fake_executor.rb +207 -0
- data/lib/ae_easy/core/mock/fake_parser.rb +31 -0
- data/lib/ae_easy/core/mock/fake_seeder.rb +28 -0
- data/lib/ae_easy/core/plugin.rb +15 -0
- data/lib/ae_easy/core/plugin/collection_vault.rb +23 -0
- data/lib/ae_easy/core/plugin/config_behavior.rb +43 -0
- data/lib/ae_easy/core/plugin/context_integrator.rb +60 -0
- data/lib/ae_easy/core/plugin/initialize_hook.rb +17 -0
- data/lib/ae_easy/core/plugin/parser.rb +19 -0
- data/lib/ae_easy/core/plugin/parser_behavior.rb +39 -0
- data/lib/ae_easy/core/plugin/seeder.rb +34 -0
- data/lib/ae_easy/core/plugin/seeder_behavior.rb +21 -0
- data/lib/ae_easy/core/smart_collection.rb +236 -0
- data/lib/ae_easy/core/version.rb +6 -0
- metadata +225 -0
@@ -0,0 +1,2226 @@
|
|
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: AeEasy::Core::Mock::FakeExecutor
|
8
|
+
|
9
|
+
— Documentation by YARD 0.9.18
|
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 = "AeEasy::Core::Mock::FakeExecutor";
|
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?1"></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="../../../AeEasy.html" title="AeEasy (module)">AeEasy</a></span></span> » <span class='title'><span class='object_link'><a href="../../Core.html" title="AeEasy::Core (module)">Core</a></span></span> » <span class='title'><span class='object_link'><a href="../Mock.html" title="AeEasy::Core::Mock (module)">Mock</a></span></span>
|
41
|
+
»
|
42
|
+
<span class="title">FakeExecutor</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
|
+
<div id="content"><h1>Module: AeEasy::Core::Mock::FakeExecutor
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
</h1>
|
67
|
+
<div class="box_info">
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
<dl>
|
75
|
+
<dt>Includes:</dt>
|
76
|
+
<dd>AnswersEngine::Plugin::ContextExposer</dd>
|
77
|
+
</dl>
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
<dl>
|
83
|
+
<dt>Included in:</dt>
|
84
|
+
<dd><span class='object_link'><a href="FakeParser.html" title="AeEasy::Core::Mock::FakeParser (class)">FakeParser</a></span>, <span class='object_link'><a href="FakeSeeder.html" title="AeEasy::Core::Mock::FakeSeeder (class)">FakeSeeder</a></span></dd>
|
85
|
+
</dl>
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
<dl>
|
90
|
+
<dt>Defined in:</dt>
|
91
|
+
<dd>lib/ae_easy/core/mock/fake_executor.rb</dd>
|
92
|
+
</dl>
|
93
|
+
|
94
|
+
</div>
|
95
|
+
|
96
|
+
<h2>Overview</h2><div class="docstring">
|
97
|
+
<div class="discussion">
|
98
|
+
|
99
|
+
<p>Fake executor that emulates `AnswersEngine` executor.</p>
|
100
|
+
|
101
|
+
|
102
|
+
</div>
|
103
|
+
</div>
|
104
|
+
<div class="tags">
|
105
|
+
|
106
|
+
|
107
|
+
</div>
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
112
|
+
<ul class="summary">
|
113
|
+
|
114
|
+
<li class="public ">
|
115
|
+
<span class="summary_signature">
|
116
|
+
|
117
|
+
<a href="#content-instance_method" title="#content (instance method)">#<strong>content</strong> ⇒ String<sup>?</sup> </a>
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
</span>
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
<span class="summary_desc"><div class='inline'>
|
135
|
+
<p>Page content.</p>
|
136
|
+
</div></span>
|
137
|
+
|
138
|
+
</li>
|
139
|
+
|
140
|
+
|
141
|
+
<li class="public ">
|
142
|
+
<span class="summary_signature">
|
143
|
+
|
144
|
+
<a href="#failed_content-instance_method" title="#failed_content (instance method)">#<strong>failed_content</strong> ⇒ String<sup>?</sup> </a>
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
</span>
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
<span class="summary_desc"><div class='inline'>
|
162
|
+
<p>Failed page content.</p>
|
163
|
+
</div></span>
|
164
|
+
|
165
|
+
</li>
|
166
|
+
|
167
|
+
|
168
|
+
</ul>
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
<h2>
|
175
|
+
Class Method Summary
|
176
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
177
|
+
</h2>
|
178
|
+
|
179
|
+
<ul class="summary">
|
180
|
+
|
181
|
+
<li class="public ">
|
182
|
+
<span class="summary_signature">
|
183
|
+
|
184
|
+
<a href="#check_compatibility-class_method" title="check_compatibility (class method)">.<strong>check_compatibility</strong>(source, fragment) ⇒ Hash </a>
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
</span>
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
<span class="summary_desc"><div class='inline'>
|
199
|
+
<p>Validate executor methods compatibility.</p>
|
200
|
+
</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="#clear_draft_outputs-instance_method" title="#clear_draft_outputs (instance method)">#<strong>clear_draft_outputs</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'>
|
232
|
+
<p>Remove all elements on outputs.</p>
|
233
|
+
</div></span>
|
234
|
+
|
235
|
+
</li>
|
236
|
+
|
237
|
+
|
238
|
+
<li class="public ">
|
239
|
+
<span class="summary_signature">
|
240
|
+
|
241
|
+
<a href="#clear_draft_pages-instance_method" title="#clear_draft_pages (instance method)">#<strong>clear_draft_pages</strong> ⇒ Object </a>
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
</span>
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
<span class="summary_desc"><div class='inline'>
|
256
|
+
<p>Remove all elements on pages.</p>
|
257
|
+
</div></span>
|
258
|
+
|
259
|
+
</li>
|
260
|
+
|
261
|
+
|
262
|
+
<li class="public ">
|
263
|
+
<span class="summary_signature">
|
264
|
+
|
265
|
+
<a href="#db-instance_method" title="#db (instance method)">#<strong>db</strong> ⇒ Object </a>
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
</span>
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
<span class="summary_desc"><div class='inline'>
|
280
|
+
<p>Fake database to represent what it is saved.</p>
|
281
|
+
</div></span>
|
282
|
+
|
283
|
+
</li>
|
284
|
+
|
285
|
+
|
286
|
+
<li class="public ">
|
287
|
+
<span class="summary_signature">
|
288
|
+
|
289
|
+
<a href="#execute_script-instance_method" title="#execute_script (instance method)">#<strong>execute_script</strong>(file_path, vars = {}) ⇒ Object </a>
|
290
|
+
|
291
|
+
|
292
|
+
|
293
|
+
</span>
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
|
298
|
+
|
299
|
+
|
300
|
+
|
301
|
+
|
302
|
+
|
303
|
+
<span class="summary_desc"><div class='inline'>
|
304
|
+
<p>Execute an script file as an executor.</p>
|
305
|
+
</div></span>
|
306
|
+
|
307
|
+
</li>
|
308
|
+
|
309
|
+
|
310
|
+
<li class="public ">
|
311
|
+
<span class="summary_signature">
|
312
|
+
|
313
|
+
<a href="#find_output-instance_method" title="#find_output (instance method)">#<strong>find_output</strong>(collection = 'default', query = {}) ⇒ Hash<sup>?</sup> </a>
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
</span>
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
|
326
|
+
|
327
|
+
<span class="summary_desc"><div class='inline'>
|
328
|
+
<p>Find one output by collection and query with pagination.</p>
|
329
|
+
</div></span>
|
330
|
+
|
331
|
+
</li>
|
332
|
+
|
333
|
+
|
334
|
+
<li class="public ">
|
335
|
+
<span class="summary_signature">
|
336
|
+
|
337
|
+
<a href="#find_outputs-instance_method" title="#find_outputs (instance method)">#<strong>find_outputs</strong>(collection = 'default', query = {}, page = 1, per_page = 30) ⇒ Array </a>
|
338
|
+
|
339
|
+
|
340
|
+
|
341
|
+
</span>
|
342
|
+
|
343
|
+
|
344
|
+
|
345
|
+
|
346
|
+
|
347
|
+
|
348
|
+
|
349
|
+
|
350
|
+
|
351
|
+
<span class="summary_desc"><div class='inline'>
|
352
|
+
<p>Find outputs by collection and query with pagination.</p>
|
353
|
+
</div></span>
|
354
|
+
|
355
|
+
</li>
|
356
|
+
|
357
|
+
|
358
|
+
<li class="public ">
|
359
|
+
<span class="summary_signature">
|
360
|
+
|
361
|
+
<a href="#flush-instance_method" title="#flush (instance method)">#<strong>flush</strong> ⇒ Object </a>
|
362
|
+
|
363
|
+
|
364
|
+
|
365
|
+
</span>
|
366
|
+
|
367
|
+
|
368
|
+
|
369
|
+
|
370
|
+
|
371
|
+
|
372
|
+
|
373
|
+
|
374
|
+
|
375
|
+
<span class="summary_desc"><div class='inline'>
|
376
|
+
<p>Save all drafts into db and clear draft queues.</p>
|
377
|
+
</div></span>
|
378
|
+
|
379
|
+
</li>
|
380
|
+
|
381
|
+
|
382
|
+
<li class="public ">
|
383
|
+
<span class="summary_signature">
|
384
|
+
|
385
|
+
<a href="#flush_outputs-instance_method" title="#flush_outputs (instance method)">#<strong>flush_outputs</strong> ⇒ Object </a>
|
386
|
+
|
387
|
+
|
388
|
+
|
389
|
+
</span>
|
390
|
+
|
391
|
+
|
392
|
+
|
393
|
+
|
394
|
+
|
395
|
+
|
396
|
+
|
397
|
+
|
398
|
+
|
399
|
+
<span class="summary_desc"><div class='inline'>
|
400
|
+
<p>Save draft outputs into db and clear draft queue.</p>
|
401
|
+
</div></span>
|
402
|
+
|
403
|
+
</li>
|
404
|
+
|
405
|
+
|
406
|
+
<li class="public ">
|
407
|
+
<span class="summary_signature">
|
408
|
+
|
409
|
+
<a href="#flush_pages-instance_method" title="#flush_pages (instance method)">#<strong>flush_pages</strong> ⇒ Object </a>
|
410
|
+
|
411
|
+
|
412
|
+
|
413
|
+
</span>
|
414
|
+
|
415
|
+
|
416
|
+
|
417
|
+
|
418
|
+
|
419
|
+
|
420
|
+
|
421
|
+
|
422
|
+
|
423
|
+
<span class="summary_desc"><div class='inline'>
|
424
|
+
<p>Save draft pages into db and clear draft queue.</p>
|
425
|
+
</div></span>
|
426
|
+
|
427
|
+
</li>
|
428
|
+
|
429
|
+
|
430
|
+
<li class="public ">
|
431
|
+
<span class="summary_signature">
|
432
|
+
|
433
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(opts = {}) ⇒ Object </a>
|
434
|
+
|
435
|
+
|
436
|
+
|
437
|
+
</span>
|
438
|
+
|
439
|
+
|
440
|
+
|
441
|
+
|
442
|
+
|
443
|
+
|
444
|
+
|
445
|
+
|
446
|
+
|
447
|
+
<span class="summary_desc"><div class='inline'>
|
448
|
+
<p>Initialize object.</p>
|
449
|
+
</div></span>
|
450
|
+
|
451
|
+
</li>
|
452
|
+
|
453
|
+
|
454
|
+
<li class="public ">
|
455
|
+
<span class="summary_signature">
|
456
|
+
|
457
|
+
<a href="#job_id-instance_method" title="#job_id (instance method)">#<strong>job_id</strong> ⇒ Integer<sup>?</sup> </a>
|
458
|
+
|
459
|
+
|
460
|
+
|
461
|
+
</span>
|
462
|
+
|
463
|
+
|
464
|
+
|
465
|
+
|
466
|
+
|
467
|
+
|
468
|
+
|
469
|
+
|
470
|
+
|
471
|
+
<span class="summary_desc"><div class='inline'>
|
472
|
+
<p>Fake job ID used by executor.</p>
|
473
|
+
</div></span>
|
474
|
+
|
475
|
+
</li>
|
476
|
+
|
477
|
+
|
478
|
+
<li class="public ">
|
479
|
+
<span class="summary_signature">
|
480
|
+
|
481
|
+
<a href="#job_id=-instance_method" title="#job_id= (instance method)">#<strong>job_id=</strong>(value) ⇒ Object </a>
|
482
|
+
|
483
|
+
|
484
|
+
|
485
|
+
</span>
|
486
|
+
|
487
|
+
|
488
|
+
|
489
|
+
|
490
|
+
|
491
|
+
|
492
|
+
|
493
|
+
|
494
|
+
|
495
|
+
<span class="summary_desc"><div class='inline'>
|
496
|
+
<p>Set fake job id value.</p>
|
497
|
+
</div></span>
|
498
|
+
|
499
|
+
</li>
|
500
|
+
|
501
|
+
|
502
|
+
<li class="public ">
|
503
|
+
<span class="summary_signature">
|
504
|
+
|
505
|
+
<a href="#outputs-instance_method" title="#outputs (instance method)">#<strong>outputs</strong> ⇒ Array </a>
|
506
|
+
|
507
|
+
|
508
|
+
|
509
|
+
</span>
|
510
|
+
|
511
|
+
|
512
|
+
|
513
|
+
|
514
|
+
|
515
|
+
|
516
|
+
|
517
|
+
|
518
|
+
|
519
|
+
<span class="summary_desc"><div class='inline'>
|
520
|
+
<p>Draft outputs, usually get saved after execution.</p>
|
521
|
+
</div></span>
|
522
|
+
|
523
|
+
</li>
|
524
|
+
|
525
|
+
|
526
|
+
<li class="public ">
|
527
|
+
<span class="summary_signature">
|
528
|
+
|
529
|
+
<a href="#page-instance_method" title="#page (instance method)">#<strong>page</strong> ⇒ Hash<sup>?</sup> </a>
|
530
|
+
|
531
|
+
|
532
|
+
|
533
|
+
</span>
|
534
|
+
|
535
|
+
|
536
|
+
|
537
|
+
|
538
|
+
|
539
|
+
|
540
|
+
|
541
|
+
|
542
|
+
|
543
|
+
<span class="summary_desc"><div class='inline'>
|
544
|
+
<p>Current page used by executor.</p>
|
545
|
+
</div></span>
|
546
|
+
|
547
|
+
</li>
|
548
|
+
|
549
|
+
|
550
|
+
<li class="public ">
|
551
|
+
<span class="summary_signature">
|
552
|
+
|
553
|
+
<a href="#page=-instance_method" title="#page= (instance method)">#<strong>page=</strong>(value) ⇒ Object </a>
|
554
|
+
|
555
|
+
|
556
|
+
|
557
|
+
</span>
|
558
|
+
|
559
|
+
|
560
|
+
|
561
|
+
|
562
|
+
|
563
|
+
|
564
|
+
|
565
|
+
|
566
|
+
|
567
|
+
<span class="summary_desc"><div class='inline'>
|
568
|
+
<p>Set current page.</p>
|
569
|
+
</div></span>
|
570
|
+
|
571
|
+
</li>
|
572
|
+
|
573
|
+
|
574
|
+
<li class="public ">
|
575
|
+
<span class="summary_signature">
|
576
|
+
|
577
|
+
<a href="#pages-instance_method" title="#pages (instance method)">#<strong>pages</strong> ⇒ Array </a>
|
578
|
+
|
579
|
+
|
580
|
+
|
581
|
+
</span>
|
582
|
+
|
583
|
+
|
584
|
+
|
585
|
+
|
586
|
+
|
587
|
+
|
588
|
+
|
589
|
+
|
590
|
+
|
591
|
+
<span class="summary_desc"><div class='inline'>
|
592
|
+
<p>Draft pages, usually get saved after execution.</p>
|
593
|
+
</div></span>
|
594
|
+
|
595
|
+
</li>
|
596
|
+
|
597
|
+
|
598
|
+
<li class="public ">
|
599
|
+
<span class="summary_signature">
|
600
|
+
|
601
|
+
<a href="#save_outputs-instance_method" title="#save_outputs (instance method)">#<strong>save_outputs</strong>(list) ⇒ Object </a>
|
602
|
+
|
603
|
+
|
604
|
+
|
605
|
+
</span>
|
606
|
+
|
607
|
+
|
608
|
+
|
609
|
+
|
610
|
+
|
611
|
+
|
612
|
+
|
613
|
+
|
614
|
+
|
615
|
+
<span class="summary_desc"><div class='inline'>
|
616
|
+
<p>Save an output collection on db.</p>
|
617
|
+
</div></span>
|
618
|
+
|
619
|
+
</li>
|
620
|
+
|
621
|
+
|
622
|
+
<li class="public ">
|
623
|
+
<span class="summary_signature">
|
624
|
+
|
625
|
+
<a href="#save_pages-instance_method" title="#save_pages (instance method)">#<strong>save_pages</strong>(list) ⇒ Object </a>
|
626
|
+
|
627
|
+
|
628
|
+
|
629
|
+
</span>
|
630
|
+
|
631
|
+
|
632
|
+
|
633
|
+
|
634
|
+
|
635
|
+
|
636
|
+
|
637
|
+
|
638
|
+
|
639
|
+
<span class="summary_desc"><div class='inline'>
|
640
|
+
<p>Save a page collection on db.</p>
|
641
|
+
</div></span>
|
642
|
+
|
643
|
+
</li>
|
644
|
+
|
645
|
+
|
646
|
+
<li class="public ">
|
647
|
+
<span class="summary_signature">
|
648
|
+
|
649
|
+
<a href="#saved_outputs-instance_method" title="#saved_outputs (instance method)">#<strong>saved_outputs</strong> ⇒ Object </a>
|
650
|
+
|
651
|
+
|
652
|
+
|
653
|
+
</span>
|
654
|
+
|
655
|
+
|
656
|
+
|
657
|
+
|
658
|
+
|
659
|
+
|
660
|
+
|
661
|
+
|
662
|
+
|
663
|
+
<span class="summary_desc"><div class='inline'>
|
664
|
+
<p>Retrive a list of saved outputs.</p>
|
665
|
+
</div></span>
|
666
|
+
|
667
|
+
</li>
|
668
|
+
|
669
|
+
|
670
|
+
<li class="public ">
|
671
|
+
<span class="summary_signature">
|
672
|
+
|
673
|
+
<a href="#saved_pages-instance_method" title="#saved_pages (instance method)">#<strong>saved_pages</strong> ⇒ Object </a>
|
674
|
+
|
675
|
+
|
676
|
+
|
677
|
+
</span>
|
678
|
+
|
679
|
+
|
680
|
+
|
681
|
+
|
682
|
+
|
683
|
+
|
684
|
+
|
685
|
+
|
686
|
+
|
687
|
+
<span class="summary_desc"><div class='inline'>
|
688
|
+
<p>Retrive a list of saved pages.</p>
|
689
|
+
</div></span>
|
690
|
+
|
691
|
+
</li>
|
692
|
+
|
693
|
+
|
694
|
+
</ul>
|
695
|
+
|
696
|
+
|
697
|
+
|
698
|
+
|
699
|
+
<div id="instance_attr_details" class="attr_details">
|
700
|
+
<h2>Instance Attribute Details</h2>
|
701
|
+
|
702
|
+
|
703
|
+
<span id="content=-instance_method"></span>
|
704
|
+
<div class="method_details first">
|
705
|
+
<h3 class="signature first" id="content-instance_method">
|
706
|
+
|
707
|
+
#<strong>content</strong> ⇒ <tt>String</tt><sup>?</sup>
|
708
|
+
|
709
|
+
|
710
|
+
|
711
|
+
|
712
|
+
|
713
|
+
</h3><div class="docstring">
|
714
|
+
<div class="discussion">
|
715
|
+
|
716
|
+
<p>Page content.</p>
|
717
|
+
|
718
|
+
|
719
|
+
</div>
|
720
|
+
</div>
|
721
|
+
<div class="tags">
|
722
|
+
|
723
|
+
<p class="tag_title">Returns:</p>
|
724
|
+
<ul class="return">
|
725
|
+
|
726
|
+
<li>
|
727
|
+
|
728
|
+
|
729
|
+
<span class='type'>(<tt>String</tt>, <tt>nil</tt>)</span>
|
730
|
+
|
731
|
+
|
732
|
+
|
733
|
+
</li>
|
734
|
+
|
735
|
+
</ul>
|
736
|
+
|
737
|
+
</div><table class="source_code">
|
738
|
+
<tr>
|
739
|
+
<td>
|
740
|
+
<pre class="lines">
|
741
|
+
|
742
|
+
|
743
|
+
8
|
744
|
+
9
|
745
|
+
10</pre>
|
746
|
+
</td>
|
747
|
+
<td>
|
748
|
+
<pre class="code"><span class="info file"># File 'lib/ae_easy/core/mock/fake_executor.rb', line 8</span>
|
749
|
+
|
750
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_content'>content</span>
|
751
|
+
<span class='ivar'>@content</span>
|
752
|
+
<span class='kw'>end</span></pre>
|
753
|
+
</td>
|
754
|
+
</tr>
|
755
|
+
</table>
|
756
|
+
</div>
|
757
|
+
|
758
|
+
|
759
|
+
<span id="failed_content=-instance_method"></span>
|
760
|
+
<div class="method_details ">
|
761
|
+
<h3 class="signature " id="failed_content-instance_method">
|
762
|
+
|
763
|
+
#<strong>failed_content</strong> ⇒ <tt>String</tt><sup>?</sup>
|
764
|
+
|
765
|
+
|
766
|
+
|
767
|
+
|
768
|
+
|
769
|
+
</h3><div class="docstring">
|
770
|
+
<div class="discussion">
|
771
|
+
|
772
|
+
<p>Failed page content.</p>
|
773
|
+
|
774
|
+
|
775
|
+
</div>
|
776
|
+
</div>
|
777
|
+
<div class="tags">
|
778
|
+
|
779
|
+
<p class="tag_title">Returns:</p>
|
780
|
+
<ul class="return">
|
781
|
+
|
782
|
+
<li>
|
783
|
+
|
784
|
+
|
785
|
+
<span class='type'>(<tt>String</tt>, <tt>nil</tt>)</span>
|
786
|
+
|
787
|
+
|
788
|
+
|
789
|
+
</li>
|
790
|
+
|
791
|
+
</ul>
|
792
|
+
|
793
|
+
</div><table class="source_code">
|
794
|
+
<tr>
|
795
|
+
<td>
|
796
|
+
<pre class="lines">
|
797
|
+
|
798
|
+
|
799
|
+
11
|
800
|
+
12
|
801
|
+
13</pre>
|
802
|
+
</td>
|
803
|
+
<td>
|
804
|
+
<pre class="code"><span class="info file"># File 'lib/ae_easy/core/mock/fake_executor.rb', line 11</span>
|
805
|
+
|
806
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_failed_content'>failed_content</span>
|
807
|
+
<span class='ivar'>@failed_content</span>
|
808
|
+
<span class='kw'>end</span></pre>
|
809
|
+
</td>
|
810
|
+
</tr>
|
811
|
+
</table>
|
812
|
+
</div>
|
813
|
+
|
814
|
+
</div>
|
815
|
+
|
816
|
+
|
817
|
+
<div id="class_method_details" class="method_details_list">
|
818
|
+
<h2>Class Method Details</h2>
|
819
|
+
|
820
|
+
|
821
|
+
<div class="method_details first">
|
822
|
+
<h3 class="signature first" id="check_compatibility-class_method">
|
823
|
+
|
824
|
+
.<strong>check_compatibility</strong>(source, fragment) ⇒ <tt>Hash</tt>
|
825
|
+
|
826
|
+
|
827
|
+
|
828
|
+
|
829
|
+
|
830
|
+
</h3><div class="docstring">
|
831
|
+
<div class="discussion">
|
832
|
+
|
833
|
+
<p>Validate executor methods compatibility.</p>
|
834
|
+
|
835
|
+
|
836
|
+
</div>
|
837
|
+
</div>
|
838
|
+
<div class="tags">
|
839
|
+
<p class="tag_title">Parameters:</p>
|
840
|
+
<ul class="param">
|
841
|
+
|
842
|
+
<li>
|
843
|
+
|
844
|
+
<span class='name'>source</span>
|
845
|
+
|
846
|
+
|
847
|
+
<span class='type'>(<tt>Array</tt>)</span>
|
848
|
+
|
849
|
+
|
850
|
+
|
851
|
+
—
|
852
|
+
<div class='inline'>
|
853
|
+
<p>Answersengine executor method collection.</p>
|
854
|
+
</div>
|
855
|
+
|
856
|
+
</li>
|
857
|
+
|
858
|
+
<li>
|
859
|
+
|
860
|
+
<span class='name'>fragment</span>
|
861
|
+
|
862
|
+
|
863
|
+
<span class='type'>(<tt>Array</tt>)</span>
|
864
|
+
|
865
|
+
|
866
|
+
|
867
|
+
—
|
868
|
+
<div class='inline'>
|
869
|
+
<p>Fake executor method collection.</p>
|
870
|
+
</div>
|
871
|
+
|
872
|
+
</li>
|
873
|
+
|
874
|
+
</ul>
|
875
|
+
|
876
|
+
<p class="tag_title">Returns:</p>
|
877
|
+
<ul class="return">
|
878
|
+
|
879
|
+
<li>
|
880
|
+
|
881
|
+
|
882
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
883
|
+
|
884
|
+
|
885
|
+
|
886
|
+
</li>
|
887
|
+
|
888
|
+
</ul>
|
889
|
+
<p class="tag_title">Raises:</p>
|
890
|
+
<ul class="raise">
|
891
|
+
|
892
|
+
<li>
|
893
|
+
|
894
|
+
|
895
|
+
<span class='type'>(<tt><span class='object_link'><a href="../Exception/OutdatedError.html" title="AeEasy::Core::Exception::OutdatedError (class)">AeEasy::Core::Exception::OutdatedError</a></span></tt>)</span>
|
896
|
+
|
897
|
+
|
898
|
+
|
899
|
+
—
|
900
|
+
<div class='inline'>
|
901
|
+
<p>When missing methods.</p>
|
902
|
+
</div>
|
903
|
+
|
904
|
+
</li>
|
905
|
+
|
906
|
+
</ul>
|
907
|
+
|
908
|
+
</div><table class="source_code">
|
909
|
+
<tr>
|
910
|
+
<td>
|
911
|
+
<pre class="lines">
|
912
|
+
|
913
|
+
|
914
|
+
23
|
915
|
+
24
|
916
|
+
25
|
917
|
+
26
|
918
|
+
27
|
919
|
+
28
|
920
|
+
29
|
921
|
+
30
|
922
|
+
31
|
923
|
+
32
|
924
|
+
33
|
925
|
+
34
|
926
|
+
35
|
927
|
+
36
|
928
|
+
37
|
929
|
+
38
|
930
|
+
39
|
931
|
+
40
|
932
|
+
41
|
933
|
+
42
|
934
|
+
43
|
935
|
+
44
|
936
|
+
45</pre>
|
937
|
+
</td>
|
938
|
+
<td>
|
939
|
+
<pre class="code"><span class="info file"># File 'lib/ae_easy/core/mock/fake_executor.rb', line 23</span>
|
940
|
+
|
941
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_check_compatibility'>check_compatibility</span> <span class='id identifier rubyid_source'>source</span><span class='comma'>,</span> <span class='id identifier rubyid_fragment'>fragment</span>
|
942
|
+
<span class='id identifier rubyid_report'>report</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../../../AeEasy.html" title="AeEasy (module)">AeEasy</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../Core.html" title="AeEasy::Core (module)">Core</a></span></span><span class='period'>.</span><span class='id identifier rubyid_analyze_compatibility'><span class='object_link'><a href="../../Core.html#analyze_compatibility-class_method" title="AeEasy::Core.analyze_compatibility (method)">analyze_compatibility</a></span></span> <span class='id identifier rubyid_source'>source</span><span class='comma'>,</span> <span class='id identifier rubyid_fragment'>fragment</span>
|
943
|
+
|
944
|
+
<span class='kw'>unless</span> <span class='id identifier rubyid_report'>report</span><span class='lbracket'>[</span><span class='symbol'>:new</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_count'>count</span> <span class='op'><</span> <span class='int'>1</span>
|
945
|
+
<span class='comment'># Warn when outdated
|
946
|
+
</span> <span class='id identifier rubyid_warn'>warn</span> <span class='heredoc_beg'><<-LONGDESC</span><span class='period'>.</span><span class='id identifier rubyid_gsub'>gsub</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^\s+</span><span class='regexp_end'>/</span></span><span class='comma'>,</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
947
|
+
<span class='tstring_content'> It seems answersengine has new unmapped methods, try updating
|
948
|
+
ae_easy-core gem or contacting gem maintainer to update it.
|
949
|
+
New methods: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_report'>report</span><span class='lbracket'>[</span><span class='symbeg'>:</span><span class='id identifier rubyid_new'>new</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>, </span><span class='tstring_end'>'</span></span><span class='embexpr_end'>}</span><span class='tstring_content'>
|
950
|
+
</span><span class='heredoc_end'> LONGDESC
|
951
|
+
</span> <span class='kw'>end</span>
|
952
|
+
|
953
|
+
<span class='comment'># Ensure no missing methods
|
954
|
+
</span> <span class='kw'>unless</span> <span class='id identifier rubyid_report'>report</span><span class='lbracket'>[</span><span class='symbol'>:is_compatible</span><span class='rbracket'>]</span>
|
955
|
+
<span class='id identifier rubyid_message'>message</span> <span class='op'>=</span> <span class='heredoc_beg'><<-LONGDESC</span><span class='period'>.</span><span class='id identifier rubyid_gsub'>gsub</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^\s+</span><span class='regexp_end'>/</span></span><span class='comma'>,</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
956
|
+
<span class='tstring_content'> There are missing methods! Check your answersengine gem version.
|
957
|
+
Missing methods: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_report'>report</span><span class='lbracket'>[</span><span class='symbeg'>:</span><span class='id identifier rubyid_missing'>missing</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>, </span><span class='tstring_end'>'</span></span><span class='embexpr_end'>}</span><span class='tstring_content'>
|
958
|
+
</span><span class='heredoc_end'> LONGDESC
|
959
|
+
</span> <span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="../../../AeEasy.html" title="AeEasy (module)">AeEasy</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../Core.html" title="AeEasy::Core (module)">Core</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Exception.html" title="AeEasy::Core::Exception (module)">Exception</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Exception/OutdatedError.html" title="AeEasy::Core::Exception::OutdatedError (class)">OutdatedError</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
|
960
|
+
<span class='kw'>end</span>
|
961
|
+
|
962
|
+
<span class='id identifier rubyid_report'>report</span>
|
963
|
+
<span class='kw'>end</span></pre>
|
964
|
+
</td>
|
965
|
+
</tr>
|
966
|
+
</table>
|
967
|
+
</div>
|
968
|
+
|
969
|
+
</div>
|
970
|
+
|
971
|
+
<div id="instance_method_details" class="method_details_list">
|
972
|
+
<h2>Instance Method Details</h2>
|
973
|
+
|
974
|
+
|
975
|
+
<div class="method_details first">
|
976
|
+
<h3 class="signature first" id="clear_draft_outputs-instance_method">
|
977
|
+
|
978
|
+
#<strong>clear_draft_outputs</strong> ⇒ <tt>Object</tt>
|
979
|
+
|
980
|
+
|
981
|
+
|
982
|
+
|
983
|
+
|
984
|
+
</h3><div class="docstring">
|
985
|
+
<div class="discussion">
|
986
|
+
|
987
|
+
<p>Remove all elements on outputs.</p>
|
988
|
+
|
989
|
+
|
990
|
+
</div>
|
991
|
+
</div>
|
992
|
+
<div class="tags">
|
993
|
+
|
994
|
+
|
995
|
+
</div><table class="source_code">
|
996
|
+
<tr>
|
997
|
+
<td>
|
998
|
+
<pre class="lines">
|
999
|
+
|
1000
|
+
|
1001
|
+
67
|
1002
|
+
68
|
1003
|
+
69</pre>
|
1004
|
+
</td>
|
1005
|
+
<td>
|
1006
|
+
<pre class="code"><span class="info file"># File 'lib/ae_easy/core/mock/fake_executor.rb', line 67</span>
|
1007
|
+
|
1008
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_clear_draft_outputs'>clear_draft_outputs</span>
|
1009
|
+
<span class='ivar'>@outputs</span><span class='period'>.</span><span class='id identifier rubyid_clear'>clear</span>
|
1010
|
+
<span class='kw'>end</span></pre>
|
1011
|
+
</td>
|
1012
|
+
</tr>
|
1013
|
+
</table>
|
1014
|
+
</div>
|
1015
|
+
|
1016
|
+
<div class="method_details ">
|
1017
|
+
<h3 class="signature " id="clear_draft_pages-instance_method">
|
1018
|
+
|
1019
|
+
#<strong>clear_draft_pages</strong> ⇒ <tt>Object</tt>
|
1020
|
+
|
1021
|
+
|
1022
|
+
|
1023
|
+
|
1024
|
+
|
1025
|
+
</h3><div class="docstring">
|
1026
|
+
<div class="discussion">
|
1027
|
+
|
1028
|
+
<p>Remove all elements on pages.</p>
|
1029
|
+
|
1030
|
+
|
1031
|
+
</div>
|
1032
|
+
</div>
|
1033
|
+
<div class="tags">
|
1034
|
+
|
1035
|
+
|
1036
|
+
</div><table class="source_code">
|
1037
|
+
<tr>
|
1038
|
+
<td>
|
1039
|
+
<pre class="lines">
|
1040
|
+
|
1041
|
+
|
1042
|
+
61
|
1043
|
+
62
|
1044
|
+
63</pre>
|
1045
|
+
</td>
|
1046
|
+
<td>
|
1047
|
+
<pre class="code"><span class="info file"># File 'lib/ae_easy/core/mock/fake_executor.rb', line 61</span>
|
1048
|
+
|
1049
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_clear_draft_pages'>clear_draft_pages</span>
|
1050
|
+
<span class='ivar'>@pages</span><span class='period'>.</span><span class='id identifier rubyid_clear'>clear</span>
|
1051
|
+
<span class='kw'>end</span></pre>
|
1052
|
+
</td>
|
1053
|
+
</tr>
|
1054
|
+
</table>
|
1055
|
+
</div>
|
1056
|
+
|
1057
|
+
<div class="method_details ">
|
1058
|
+
<h3 class="signature " id="db-instance_method">
|
1059
|
+
|
1060
|
+
#<strong>db</strong> ⇒ <tt>Object</tt>
|
1061
|
+
|
1062
|
+
|
1063
|
+
|
1064
|
+
|
1065
|
+
|
1066
|
+
</h3><div class="docstring">
|
1067
|
+
<div class="discussion">
|
1068
|
+
|
1069
|
+
<p>Fake database to represent what it is saved.</p>
|
1070
|
+
|
1071
|
+
|
1072
|
+
</div>
|
1073
|
+
</div>
|
1074
|
+
<div class="tags">
|
1075
|
+
|
1076
|
+
|
1077
|
+
</div><table class="source_code">
|
1078
|
+
<tr>
|
1079
|
+
<td>
|
1080
|
+
<pre class="lines">
|
1081
|
+
|
1082
|
+
|
1083
|
+
72
|
1084
|
+
73
|
1085
|
+
74</pre>
|
1086
|
+
</td>
|
1087
|
+
<td>
|
1088
|
+
<pre class="code"><span class="info file"># File 'lib/ae_easy/core/mock/fake_executor.rb', line 72</span>
|
1089
|
+
|
1090
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_db'>db</span>
|
1091
|
+
<span class='ivar'>@db</span> <span class='op'>||=</span> <span class='const'><span class='object_link'><a href="../../../AeEasy.html" title="AeEasy (module)">AeEasy</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../Core.html" title="AeEasy::Core (module)">Core</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Mock.html" title="AeEasy::Core::Mock (module)">Mock</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="FakeDb.html" title="AeEasy::Core::Mock::FakeDb (class)">FakeDb</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="FakeDb.html#initialize-instance_method" title="AeEasy::Core::Mock::FakeDb#initialize (method)">new</a></span></span>
|
1092
|
+
<span class='kw'>end</span></pre>
|
1093
|
+
</td>
|
1094
|
+
</tr>
|
1095
|
+
</table>
|
1096
|
+
</div>
|
1097
|
+
|
1098
|
+
<div class="method_details ">
|
1099
|
+
<h3 class="signature " id="execute_script-instance_method">
|
1100
|
+
|
1101
|
+
#<strong>execute_script</strong>(file_path, vars = {}) ⇒ <tt>Object</tt>
|
1102
|
+
|
1103
|
+
|
1104
|
+
|
1105
|
+
|
1106
|
+
|
1107
|
+
</h3><div class="docstring">
|
1108
|
+
<div class="discussion">
|
1109
|
+
|
1110
|
+
<p>Execute an script file as an executor.</p>
|
1111
|
+
|
1112
|
+
|
1113
|
+
</div>
|
1114
|
+
</div>
|
1115
|
+
<div class="tags">
|
1116
|
+
<p class="tag_title">Parameters:</p>
|
1117
|
+
<ul class="param">
|
1118
|
+
|
1119
|
+
<li>
|
1120
|
+
|
1121
|
+
<span class='name'>file_path</span>
|
1122
|
+
|
1123
|
+
|
1124
|
+
<span class='type'>(<tt>String</tt>)</span>
|
1125
|
+
|
1126
|
+
|
1127
|
+
|
1128
|
+
—
|
1129
|
+
<div class='inline'>
|
1130
|
+
<p>Script file path to execute.</p>
|
1131
|
+
</div>
|
1132
|
+
|
1133
|
+
</li>
|
1134
|
+
|
1135
|
+
</ul>
|
1136
|
+
|
1137
|
+
|
1138
|
+
</div><table class="source_code">
|
1139
|
+
<tr>
|
1140
|
+
<td>
|
1141
|
+
<pre class="lines">
|
1142
|
+
|
1143
|
+
|
1144
|
+
200
|
1145
|
+
201
|
1146
|
+
202
|
1147
|
+
203</pre>
|
1148
|
+
</td>
|
1149
|
+
<td>
|
1150
|
+
<pre class="code"><span class="info file"># File 'lib/ae_easy/core/mock/fake_executor.rb', line 200</span>
|
1151
|
+
|
1152
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_execute_script'>execute_script</span> <span class='id identifier rubyid_file_path'>file_path</span><span class='comma'>,</span> <span class='id identifier rubyid_vars'>vars</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
1153
|
+
<span class='id identifier rubyid_eval'>eval</span><span class='lparen'>(</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_read'>read</span><span class='lparen'>(</span><span class='id identifier rubyid_file_path'>file_path</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='id identifier rubyid_isolated_binding'>isolated_binding</span><span class='lparen'>(</span><span class='id identifier rubyid_vars'>vars</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='id identifier rubyid_file_path'>file_path</span><span class='rparen'>)</span>
|
1154
|
+
<span class='id identifier rubyid_flush'>flush</span>
|
1155
|
+
<span class='kw'>end</span></pre>
|
1156
|
+
</td>
|
1157
|
+
</tr>
|
1158
|
+
</table>
|
1159
|
+
</div>
|
1160
|
+
|
1161
|
+
<div class="method_details ">
|
1162
|
+
<h3 class="signature " id="find_output-instance_method">
|
1163
|
+
|
1164
|
+
#<strong>find_output</strong>(collection = 'default', query = {}) ⇒ <tt>Hash</tt><sup>?</sup>
|
1165
|
+
|
1166
|
+
|
1167
|
+
|
1168
|
+
|
1169
|
+
|
1170
|
+
</h3><div class="docstring">
|
1171
|
+
<div class="discussion">
|
1172
|
+
|
1173
|
+
<p>Find one output by collection and query with pagination.</p>
|
1174
|
+
|
1175
|
+
|
1176
|
+
</div>
|
1177
|
+
</div>
|
1178
|
+
<div class="tags">
|
1179
|
+
<p class="tag_title">Parameters:</p>
|
1180
|
+
<ul class="param">
|
1181
|
+
|
1182
|
+
<li>
|
1183
|
+
|
1184
|
+
<span class='name'>collection</span>
|
1185
|
+
|
1186
|
+
|
1187
|
+
<span class='type'>(<tt>String</tt>)</span>
|
1188
|
+
|
1189
|
+
|
1190
|
+
<em class="default">(defaults to: <tt>'default'</tt>)</em>
|
1191
|
+
|
1192
|
+
|
1193
|
+
—
|
1194
|
+
<div class='inline'>
|
1195
|
+
<p>('default') Collection name.</p>
|
1196
|
+
</div>
|
1197
|
+
|
1198
|
+
</li>
|
1199
|
+
|
1200
|
+
<li>
|
1201
|
+
|
1202
|
+
<span class='name'>query</span>
|
1203
|
+
|
1204
|
+
|
1205
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
1206
|
+
|
1207
|
+
|
1208
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
1209
|
+
|
1210
|
+
|
1211
|
+
—
|
1212
|
+
<div class='inline'>
|
1213
|
+
<p>({}) Filters to query.</p>
|
1214
|
+
</div>
|
1215
|
+
|
1216
|
+
</li>
|
1217
|
+
|
1218
|
+
</ul>
|
1219
|
+
|
1220
|
+
<p class="tag_title">Returns:</p>
|
1221
|
+
<ul class="return">
|
1222
|
+
|
1223
|
+
<li>
|
1224
|
+
|
1225
|
+
|
1226
|
+
<span class='type'>(<tt>Hash</tt>, <tt>nil</tt>)</span>
|
1227
|
+
|
1228
|
+
|
1229
|
+
|
1230
|
+
</li>
|
1231
|
+
|
1232
|
+
</ul>
|
1233
|
+
|
1234
|
+
</div><table class="source_code">
|
1235
|
+
<tr>
|
1236
|
+
<td>
|
1237
|
+
<pre class="lines">
|
1238
|
+
|
1239
|
+
|
1240
|
+
192
|
1241
|
+
193
|
1242
|
+
194
|
1243
|
+
195</pre>
|
1244
|
+
</td>
|
1245
|
+
<td>
|
1246
|
+
<pre class="code"><span class="info file"># File 'lib/ae_easy/core/mock/fake_executor.rb', line 192</span>
|
1247
|
+
|
1248
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_find_output'>find_output</span> <span class='id identifier rubyid_collection'>collection</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>default</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_query'>query</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
1249
|
+
<span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='id identifier rubyid_find_outputs'>find_outputs</span><span class='lparen'>(</span><span class='id identifier rubyid_collection'>collection</span><span class='comma'>,</span> <span class='id identifier rubyid_query'>query</span><span class='comma'>,</span> <span class='int'>1</span><span class='comma'>,</span> <span class='int'>1</span><span class='rparen'>)</span>
|
1250
|
+
<span class='id identifier rubyid_result'>result</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>?</span> <span class='kw'>nil</span> <span class='op'>:</span> <span class='id identifier rubyid_result'>result</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span>
|
1251
|
+
<span class='kw'>end</span></pre>
|
1252
|
+
</td>
|
1253
|
+
</tr>
|
1254
|
+
</table>
|
1255
|
+
</div>
|
1256
|
+
|
1257
|
+
<div class="method_details ">
|
1258
|
+
<h3 class="signature " id="find_outputs-instance_method">
|
1259
|
+
|
1260
|
+
#<strong>find_outputs</strong>(collection = 'default', query = {}, page = 1, per_page = 30) ⇒ <tt>Array</tt>
|
1261
|
+
|
1262
|
+
|
1263
|
+
|
1264
|
+
|
1265
|
+
|
1266
|
+
</h3><div class="docstring">
|
1267
|
+
<div class="discussion">
|
1268
|
+
|
1269
|
+
<p>Find outputs by collection and query with pagination.</p>
|
1270
|
+
|
1271
|
+
|
1272
|
+
</div>
|
1273
|
+
</div>
|
1274
|
+
<div class="tags">
|
1275
|
+
<p class="tag_title">Parameters:</p>
|
1276
|
+
<ul class="param">
|
1277
|
+
|
1278
|
+
<li>
|
1279
|
+
|
1280
|
+
<span class='name'>collection</span>
|
1281
|
+
|
1282
|
+
|
1283
|
+
<span class='type'>(<tt>String</tt>)</span>
|
1284
|
+
|
1285
|
+
|
1286
|
+
<em class="default">(defaults to: <tt>'default'</tt>)</em>
|
1287
|
+
|
1288
|
+
|
1289
|
+
—
|
1290
|
+
<div class='inline'>
|
1291
|
+
<p>('default') Collection name.</p>
|
1292
|
+
</div>
|
1293
|
+
|
1294
|
+
</li>
|
1295
|
+
|
1296
|
+
<li>
|
1297
|
+
|
1298
|
+
<span class='name'>query</span>
|
1299
|
+
|
1300
|
+
|
1301
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
1302
|
+
|
1303
|
+
|
1304
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
1305
|
+
|
1306
|
+
|
1307
|
+
—
|
1308
|
+
<div class='inline'>
|
1309
|
+
<p>({}) Filters to query.</p>
|
1310
|
+
</div>
|
1311
|
+
|
1312
|
+
</li>
|
1313
|
+
|
1314
|
+
<li>
|
1315
|
+
|
1316
|
+
<span class='name'>page</span>
|
1317
|
+
|
1318
|
+
|
1319
|
+
<span class='type'>(<tt>Integer</tt>)</span>
|
1320
|
+
|
1321
|
+
|
1322
|
+
<em class="default">(defaults to: <tt>1</tt>)</em>
|
1323
|
+
|
1324
|
+
|
1325
|
+
—
|
1326
|
+
<div class='inline'>
|
1327
|
+
<p>(1) Page number.</p>
|
1328
|
+
</div>
|
1329
|
+
|
1330
|
+
</li>
|
1331
|
+
|
1332
|
+
<li>
|
1333
|
+
|
1334
|
+
<span class='name'>per_page</span>
|
1335
|
+
|
1336
|
+
|
1337
|
+
<span class='type'>(<tt>Integer</tt>)</span>
|
1338
|
+
|
1339
|
+
|
1340
|
+
<em class="default">(defaults to: <tt>30</tt>)</em>
|
1341
|
+
|
1342
|
+
|
1343
|
+
—
|
1344
|
+
<div class='inline'>
|
1345
|
+
<p>(30) Page size.</p>
|
1346
|
+
</div>
|
1347
|
+
|
1348
|
+
</li>
|
1349
|
+
|
1350
|
+
</ul>
|
1351
|
+
|
1352
|
+
<p class="tag_title">Returns:</p>
|
1353
|
+
<ul class="return">
|
1354
|
+
|
1355
|
+
<li>
|
1356
|
+
|
1357
|
+
|
1358
|
+
<span class='type'>(<tt>Array</tt>)</span>
|
1359
|
+
|
1360
|
+
|
1361
|
+
|
1362
|
+
</li>
|
1363
|
+
|
1364
|
+
</ul>
|
1365
|
+
|
1366
|
+
</div><table class="source_code">
|
1367
|
+
<tr>
|
1368
|
+
<td>
|
1369
|
+
<pre class="lines">
|
1370
|
+
|
1371
|
+
|
1372
|
+
177
|
1373
|
+
178
|
1374
|
+
179
|
1375
|
+
180
|
1376
|
+
181
|
1377
|
+
182
|
1378
|
+
183
|
1379
|
+
184</pre>
|
1380
|
+
</td>
|
1381
|
+
<td>
|
1382
|
+
<pre class="code"><span class="info file"># File 'lib/ae_easy/core/mock/fake_executor.rb', line 177</span>
|
1383
|
+
|
1384
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_find_outputs'>find_outputs</span> <span class='id identifier rubyid_collection'>collection</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>default</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_query'>query</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='id identifier rubyid_page'>page</span> <span class='op'>=</span> <span class='int'>1</span><span class='comma'>,</span> <span class='id identifier rubyid_per_page'>per_page</span> <span class='op'>=</span> <span class='int'>30</span>
|
1385
|
+
<span class='id identifier rubyid_count'>count</span> <span class='op'>=</span> <span class='int'>0</span>
|
1386
|
+
<span class='id identifier rubyid_offset'>offset</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='id identifier rubyid_page'>page</span> <span class='op'>-</span> <span class='int'>1</span><span class='rparen'>)</span> <span class='op'>*</span> <span class='id identifier rubyid_per_page'>per_page</span>
|
1387
|
+
<span class='id identifier rubyid_fixed_query'>fixed_query</span> <span class='op'>=</span> <span class='id identifier rubyid_query'>query</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span>
|
1388
|
+
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>_collection</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='id identifier rubyid_collection'>collection</span>
|
1389
|
+
<span class='rparen'>)</span>
|
1390
|
+
<span class='id identifier rubyid_db'>db</span><span class='period'>.</span><span class='id identifier rubyid_query'>query</span> <span class='symbol'>:outputs</span><span class='comma'>,</span> <span class='id identifier rubyid_fixed_query'>fixed_query</span><span class='comma'>,</span> <span class='id identifier rubyid_offset'>offset</span><span class='comma'>,</span> <span class='id identifier rubyid_per_page'>per_page</span>
|
1391
|
+
<span class='kw'>end</span></pre>
|
1392
|
+
</td>
|
1393
|
+
</tr>
|
1394
|
+
</table>
|
1395
|
+
</div>
|
1396
|
+
|
1397
|
+
<div class="method_details ">
|
1398
|
+
<h3 class="signature " id="flush-instance_method">
|
1399
|
+
|
1400
|
+
#<strong>flush</strong> ⇒ <tt>Object</tt>
|
1401
|
+
|
1402
|
+
|
1403
|
+
|
1404
|
+
|
1405
|
+
|
1406
|
+
</h3><div class="docstring">
|
1407
|
+
<div class="discussion">
|
1408
|
+
|
1409
|
+
<p>Save all drafts into db and clear draft queues.</p>
|
1410
|
+
|
1411
|
+
|
1412
|
+
</div>
|
1413
|
+
</div>
|
1414
|
+
<div class="tags">
|
1415
|
+
|
1416
|
+
|
1417
|
+
</div><table class="source_code">
|
1418
|
+
<tr>
|
1419
|
+
<td>
|
1420
|
+
<pre class="lines">
|
1421
|
+
|
1422
|
+
|
1423
|
+
164
|
1424
|
+
165
|
1425
|
+
166
|
1426
|
+
167</pre>
|
1427
|
+
</td>
|
1428
|
+
<td>
|
1429
|
+
<pre class="code"><span class="info file"># File 'lib/ae_easy/core/mock/fake_executor.rb', line 164</span>
|
1430
|
+
|
1431
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_flush'>flush</span>
|
1432
|
+
<span class='id identifier rubyid_flush_pages'>flush_pages</span>
|
1433
|
+
<span class='id identifier rubyid_flush_outputs'>flush_outputs</span>
|
1434
|
+
<span class='kw'>end</span></pre>
|
1435
|
+
</td>
|
1436
|
+
</tr>
|
1437
|
+
</table>
|
1438
|
+
</div>
|
1439
|
+
|
1440
|
+
<div class="method_details ">
|
1441
|
+
<h3 class="signature " id="flush_outputs-instance_method">
|
1442
|
+
|
1443
|
+
#<strong>flush_outputs</strong> ⇒ <tt>Object</tt>
|
1444
|
+
|
1445
|
+
|
1446
|
+
|
1447
|
+
|
1448
|
+
|
1449
|
+
</h3><div class="docstring">
|
1450
|
+
<div class="discussion">
|
1451
|
+
|
1452
|
+
<p>Save draft outputs into db and clear draft queue.</p>
|
1453
|
+
|
1454
|
+
|
1455
|
+
</div>
|
1456
|
+
</div>
|
1457
|
+
<div class="tags">
|
1458
|
+
|
1459
|
+
|
1460
|
+
</div><table class="source_code">
|
1461
|
+
<tr>
|
1462
|
+
<td>
|
1463
|
+
<pre class="lines">
|
1464
|
+
|
1465
|
+
|
1466
|
+
158
|
1467
|
+
159
|
1468
|
+
160
|
1469
|
+
161</pre>
|
1470
|
+
</td>
|
1471
|
+
<td>
|
1472
|
+
<pre class="code"><span class="info file"># File 'lib/ae_easy/core/mock/fake_executor.rb', line 158</span>
|
1473
|
+
|
1474
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_flush_outputs'>flush_outputs</span>
|
1475
|
+
<span class='id identifier rubyid_save_outputs'>save_outputs</span> <span class='id identifier rubyid_outputs'>outputs</span>
|
1476
|
+
<span class='id identifier rubyid_clear_draft_outputs'>clear_draft_outputs</span>
|
1477
|
+
<span class='kw'>end</span></pre>
|
1478
|
+
</td>
|
1479
|
+
</tr>
|
1480
|
+
</table>
|
1481
|
+
</div>
|
1482
|
+
|
1483
|
+
<div class="method_details ">
|
1484
|
+
<h3 class="signature " id="flush_pages-instance_method">
|
1485
|
+
|
1486
|
+
#<strong>flush_pages</strong> ⇒ <tt>Object</tt>
|
1487
|
+
|
1488
|
+
|
1489
|
+
|
1490
|
+
|
1491
|
+
|
1492
|
+
</h3><div class="docstring">
|
1493
|
+
<div class="discussion">
|
1494
|
+
|
1495
|
+
<p>Save draft pages into db and clear draft queue.</p>
|
1496
|
+
|
1497
|
+
|
1498
|
+
</div>
|
1499
|
+
</div>
|
1500
|
+
<div class="tags">
|
1501
|
+
|
1502
|
+
|
1503
|
+
</div><table class="source_code">
|
1504
|
+
<tr>
|
1505
|
+
<td>
|
1506
|
+
<pre class="lines">
|
1507
|
+
|
1508
|
+
|
1509
|
+
152
|
1510
|
+
153
|
1511
|
+
154
|
1512
|
+
155</pre>
|
1513
|
+
</td>
|
1514
|
+
<td>
|
1515
|
+
<pre class="code"><span class="info file"># File 'lib/ae_easy/core/mock/fake_executor.rb', line 152</span>
|
1516
|
+
|
1517
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_flush_pages'>flush_pages</span>
|
1518
|
+
<span class='id identifier rubyid_save_pages'>save_pages</span> <span class='id identifier rubyid_pages'>pages</span>
|
1519
|
+
<span class='id identifier rubyid_clear_draft_pages'>clear_draft_pages</span>
|
1520
|
+
<span class='kw'>end</span></pre>
|
1521
|
+
</td>
|
1522
|
+
</tr>
|
1523
|
+
</table>
|
1524
|
+
</div>
|
1525
|
+
|
1526
|
+
<div class="method_details ">
|
1527
|
+
<h3 class="signature " id="initialize-instance_method">
|
1528
|
+
|
1529
|
+
#<strong>initialize</strong>(opts = {}) ⇒ <tt>Object</tt>
|
1530
|
+
|
1531
|
+
|
1532
|
+
|
1533
|
+
|
1534
|
+
|
1535
|
+
</h3><div class="docstring">
|
1536
|
+
<div class="discussion">
|
1537
|
+
|
1538
|
+
<p>Initialize object.</p>
|
1539
|
+
|
1540
|
+
|
1541
|
+
</div>
|
1542
|
+
</div>
|
1543
|
+
<div class="tags">
|
1544
|
+
<p class="tag_title">Parameters:</p>
|
1545
|
+
<ul class="param">
|
1546
|
+
|
1547
|
+
<li>
|
1548
|
+
|
1549
|
+
<span class='name'>opts</span>
|
1550
|
+
|
1551
|
+
|
1552
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
1553
|
+
|
1554
|
+
|
1555
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
1556
|
+
|
1557
|
+
|
1558
|
+
—
|
1559
|
+
<div class='inline'>
|
1560
|
+
<p>({}) Configuration options.</p>
|
1561
|
+
</div>
|
1562
|
+
|
1563
|
+
</li>
|
1564
|
+
|
1565
|
+
</ul>
|
1566
|
+
|
1567
|
+
|
1568
|
+
|
1569
|
+
|
1570
|
+
<p class="tag_title">Options Hash (<tt>opts</tt>):</p>
|
1571
|
+
<ul class="option">
|
1572
|
+
|
1573
|
+
<li>
|
1574
|
+
<span class="name">:pages</span>
|
1575
|
+
<span class="type">(<tt>Array</tt>)</span>
|
1576
|
+
<span class="default">
|
1577
|
+
|
1578
|
+
— default:
|
1579
|
+
<tt>nil</tt>
|
1580
|
+
|
1581
|
+
</span>
|
1582
|
+
|
1583
|
+
— <div class='inline'>
|
1584
|
+
<p>Array to initialize pages, can be nil for empty.</p>
|
1585
|
+
</div>
|
1586
|
+
|
1587
|
+
</li>
|
1588
|
+
|
1589
|
+
<li>
|
1590
|
+
<span class="name">:outputs</span>
|
1591
|
+
<span class="type">(<tt>Array</tt>)</span>
|
1592
|
+
<span class="default">
|
1593
|
+
|
1594
|
+
— default:
|
1595
|
+
<tt>nil</tt>
|
1596
|
+
|
1597
|
+
</span>
|
1598
|
+
|
1599
|
+
— <div class='inline'>
|
1600
|
+
<p>Array to initialize outputs, can be nil for empty.</p>
|
1601
|
+
</div>
|
1602
|
+
|
1603
|
+
</li>
|
1604
|
+
|
1605
|
+
<li>
|
1606
|
+
<span class="name">:job_id</span>
|
1607
|
+
<span class="type">(<tt>Integer</tt>)</span>
|
1608
|
+
<span class="default">
|
1609
|
+
|
1610
|
+
— default:
|
1611
|
+
<tt>nil</tt>
|
1612
|
+
|
1613
|
+
</span>
|
1614
|
+
|
1615
|
+
— <div class='inline'>
|
1616
|
+
<p>A number to represent the job_id.</p>
|
1617
|
+
</div>
|
1618
|
+
|
1619
|
+
</li>
|
1620
|
+
|
1621
|
+
<li>
|
1622
|
+
<span class="name">:page</span>
|
1623
|
+
<span class="type">(<tt>Hash</tt>)</span>
|
1624
|
+
<span class="default">
|
1625
|
+
|
1626
|
+
— default:
|
1627
|
+
<tt>nil</tt>
|
1628
|
+
|
1629
|
+
</span>
|
1630
|
+
|
1631
|
+
— <div class='inline'>
|
1632
|
+
<p>Current page.</p>
|
1633
|
+
</div>
|
1634
|
+
|
1635
|
+
</li>
|
1636
|
+
|
1637
|
+
</ul>
|
1638
|
+
|
1639
|
+
|
1640
|
+
<p class="tag_title">Raises:</p>
|
1641
|
+
<ul class="raise">
|
1642
|
+
|
1643
|
+
<li>
|
1644
|
+
|
1645
|
+
|
1646
|
+
<span class='type'>(<tt>ArgumentError</tt>)</span>
|
1647
|
+
|
1648
|
+
|
1649
|
+
|
1650
|
+
—
|
1651
|
+
<div class='inline'>
|
1652
|
+
<p>When pages or outputs are not Array.</p>
|
1653
|
+
</div>
|
1654
|
+
|
1655
|
+
</li>
|
1656
|
+
|
1657
|
+
</ul>
|
1658
|
+
|
1659
|
+
</div><table class="source_code">
|
1660
|
+
<tr>
|
1661
|
+
<td>
|
1662
|
+
<pre class="lines">
|
1663
|
+
|
1664
|
+
|
1665
|
+
85
|
1666
|
+
86
|
1667
|
+
87
|
1668
|
+
88
|
1669
|
+
89
|
1670
|
+
90
|
1671
|
+
91
|
1672
|
+
92
|
1673
|
+
93
|
1674
|
+
94
|
1675
|
+
95
|
1676
|
+
96</pre>
|
1677
|
+
</td>
|
1678
|
+
<td>
|
1679
|
+
<pre class="code"><span class="info file"># File 'lib/ae_easy/core/mock/fake_executor.rb', line 85</span>
|
1680
|
+
|
1681
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span> <span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
1682
|
+
<span class='kw'>unless</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:pages</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>||</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:pages</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Array</span><span class='rparen'>)</span>
|
1683
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Pages must be an array.</span><span class='tstring_end'>"</span></span>
|
1684
|
+
<span class='kw'>end</span>
|
1685
|
+
<span class='ivar'>@pages</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:pages</span><span class='rbracket'>]</span>
|
1686
|
+
<span class='kw'>unless</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:outputs</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>||</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:outputs</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Array</span><span class='rparen'>)</span>
|
1687
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Outputs must be an array.</span><span class='tstring_end'>"</span></span>
|
1688
|
+
<span class='kw'>end</span>
|
1689
|
+
<span class='ivar'>@outputs</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:outputs</span><span class='rbracket'>]</span>
|
1690
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_job_id'>job_id</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:job_id</span><span class='rbracket'>]</span>
|
1691
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_page'>page</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:page</span><span class='rbracket'>]</span>
|
1692
|
+
<span class='kw'>end</span></pre>
|
1693
|
+
</td>
|
1694
|
+
</tr>
|
1695
|
+
</table>
|
1696
|
+
</div>
|
1697
|
+
|
1698
|
+
<div class="method_details ">
|
1699
|
+
<h3 class="signature " id="job_id-instance_method">
|
1700
|
+
|
1701
|
+
#<strong>job_id</strong> ⇒ <tt>Integer</tt><sup>?</sup>
|
1702
|
+
|
1703
|
+
|
1704
|
+
|
1705
|
+
|
1706
|
+
|
1707
|
+
</h3><div class="docstring">
|
1708
|
+
<div class="discussion">
|
1709
|
+
|
1710
|
+
<p>Fake job ID used by executor.</p>
|
1711
|
+
|
1712
|
+
|
1713
|
+
</div>
|
1714
|
+
</div>
|
1715
|
+
<div class="tags">
|
1716
|
+
|
1717
|
+
<p class="tag_title">Returns:</p>
|
1718
|
+
<ul class="return">
|
1719
|
+
|
1720
|
+
<li>
|
1721
|
+
|
1722
|
+
|
1723
|
+
<span class='type'>(<tt>Integer</tt>, <tt>nil</tt>)</span>
|
1724
|
+
|
1725
|
+
|
1726
|
+
|
1727
|
+
</li>
|
1728
|
+
|
1729
|
+
</ul>
|
1730
|
+
|
1731
|
+
</div><table class="source_code">
|
1732
|
+
<tr>
|
1733
|
+
<td>
|
1734
|
+
<pre class="lines">
|
1735
|
+
|
1736
|
+
|
1737
|
+
100
|
1738
|
+
101
|
1739
|
+
102</pre>
|
1740
|
+
</td>
|
1741
|
+
<td>
|
1742
|
+
<pre class="code"><span class="info file"># File 'lib/ae_easy/core/mock/fake_executor.rb', line 100</span>
|
1743
|
+
|
1744
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_job_id'>job_id</span>
|
1745
|
+
<span class='id identifier rubyid_db'>db</span><span class='period'>.</span><span class='id identifier rubyid_job_id'>job_id</span>
|
1746
|
+
<span class='kw'>end</span></pre>
|
1747
|
+
</td>
|
1748
|
+
</tr>
|
1749
|
+
</table>
|
1750
|
+
</div>
|
1751
|
+
|
1752
|
+
<div class="method_details ">
|
1753
|
+
<h3 class="signature " id="job_id=-instance_method">
|
1754
|
+
|
1755
|
+
#<strong>job_id=</strong>(value) ⇒ <tt>Object</tt>
|
1756
|
+
|
1757
|
+
|
1758
|
+
|
1759
|
+
|
1760
|
+
|
1761
|
+
</h3><div class="docstring">
|
1762
|
+
<div class="discussion">
|
1763
|
+
|
1764
|
+
<p>Set fake job id value.</p>
|
1765
|
+
|
1766
|
+
|
1767
|
+
</div>
|
1768
|
+
</div>
|
1769
|
+
<div class="tags">
|
1770
|
+
|
1771
|
+
|
1772
|
+
</div><table class="source_code">
|
1773
|
+
<tr>
|
1774
|
+
<td>
|
1775
|
+
<pre class="lines">
|
1776
|
+
|
1777
|
+
|
1778
|
+
105
|
1779
|
+
106
|
1780
|
+
107
|
1781
|
+
108</pre>
|
1782
|
+
</td>
|
1783
|
+
<td>
|
1784
|
+
<pre class="code"><span class="info file"># File 'lib/ae_easy/core/mock/fake_executor.rb', line 105</span>
|
1785
|
+
|
1786
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_job_id='>job_id=</span> <span class='id identifier rubyid_value'>value</span>
|
1787
|
+
<span class='id identifier rubyid_db'>db</span><span class='period'>.</span><span class='id identifier rubyid_job_id'>job_id</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span>
|
1788
|
+
<span class='id identifier rubyid_page'>page</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>job_id</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span>
|
1789
|
+
<span class='kw'>end</span></pre>
|
1790
|
+
</td>
|
1791
|
+
</tr>
|
1792
|
+
</table>
|
1793
|
+
</div>
|
1794
|
+
|
1795
|
+
<div class="method_details ">
|
1796
|
+
<h3 class="signature " id="outputs-instance_method">
|
1797
|
+
|
1798
|
+
#<strong>outputs</strong> ⇒ <tt>Array</tt>
|
1799
|
+
|
1800
|
+
|
1801
|
+
|
1802
|
+
|
1803
|
+
|
1804
|
+
</h3><div class="docstring">
|
1805
|
+
<div class="discussion">
|
1806
|
+
|
1807
|
+
<p>Draft outputs, usually get saved after execution.</p>
|
1808
|
+
|
1809
|
+
|
1810
|
+
</div>
|
1811
|
+
</div>
|
1812
|
+
<div class="tags">
|
1813
|
+
|
1814
|
+
<p class="tag_title">Returns:</p>
|
1815
|
+
<ul class="return">
|
1816
|
+
|
1817
|
+
<li>
|
1818
|
+
|
1819
|
+
|
1820
|
+
<span class='type'>(<tt>Array</tt>)</span>
|
1821
|
+
|
1822
|
+
|
1823
|
+
|
1824
|
+
</li>
|
1825
|
+
|
1826
|
+
</ul>
|
1827
|
+
|
1828
|
+
</div><table class="source_code">
|
1829
|
+
<tr>
|
1830
|
+
<td>
|
1831
|
+
<pre class="lines">
|
1832
|
+
|
1833
|
+
|
1834
|
+
55
|
1835
|
+
56
|
1836
|
+
57</pre>
|
1837
|
+
</td>
|
1838
|
+
<td>
|
1839
|
+
<pre class="code"><span class="info file"># File 'lib/ae_easy/core/mock/fake_executor.rb', line 55</span>
|
1840
|
+
|
1841
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_outputs'>outputs</span>
|
1842
|
+
<span class='ivar'>@outputs</span> <span class='op'>||=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
1843
|
+
<span class='kw'>end</span></pre>
|
1844
|
+
</td>
|
1845
|
+
</tr>
|
1846
|
+
</table>
|
1847
|
+
</div>
|
1848
|
+
|
1849
|
+
<div class="method_details ">
|
1850
|
+
<h3 class="signature " id="page-instance_method">
|
1851
|
+
|
1852
|
+
#<strong>page</strong> ⇒ <tt>Hash</tt><sup>?</sup>
|
1853
|
+
|
1854
|
+
|
1855
|
+
|
1856
|
+
|
1857
|
+
|
1858
|
+
</h3><div class="docstring">
|
1859
|
+
<div class="discussion">
|
1860
|
+
|
1861
|
+
<p>Current page used by executor.</p>
|
1862
|
+
|
1863
|
+
|
1864
|
+
</div>
|
1865
|
+
</div>
|
1866
|
+
<div class="tags">
|
1867
|
+
|
1868
|
+
<p class="tag_title">Returns:</p>
|
1869
|
+
<ul class="return">
|
1870
|
+
|
1871
|
+
<li>
|
1872
|
+
|
1873
|
+
|
1874
|
+
<span class='type'>(<tt>Hash</tt>, <tt>nil</tt>)</span>
|
1875
|
+
|
1876
|
+
|
1877
|
+
|
1878
|
+
</li>
|
1879
|
+
|
1880
|
+
</ul>
|
1881
|
+
|
1882
|
+
</div><table class="source_code">
|
1883
|
+
<tr>
|
1884
|
+
<td>
|
1885
|
+
<pre class="lines">
|
1886
|
+
|
1887
|
+
|
1888
|
+
112
|
1889
|
+
113
|
1890
|
+
114</pre>
|
1891
|
+
</td>
|
1892
|
+
<td>
|
1893
|
+
<pre class="code"><span class="info file"># File 'lib/ae_easy/core/mock/fake_executor.rb', line 112</span>
|
1894
|
+
|
1895
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_page'>page</span>
|
1896
|
+
<span class='ivar'>@page</span> <span class='op'>||=</span> <span class='const'><span class='object_link'><a href="../../../AeEasy.html" title="AeEasy (module)">AeEasy</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../Core.html" title="AeEasy::Core (module)">Core</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Mock.html" title="AeEasy::Core::Mock (module)">Mock</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="FakeDb.html" title="AeEasy::Core::Mock::FakeDb (class)">FakeDb</a></span></span><span class='period'>.</span><span class='id identifier rubyid_build_fake_page'><span class='object_link'><a href="FakeDb.html#build_fake_page-class_method" title="AeEasy::Core::Mock::FakeDb.build_fake_page (method)">build_fake_page</a></span></span> <span class='label'>job_id:</span> <span class='id identifier rubyid_job_id'>job_id</span>
|
1897
|
+
<span class='kw'>end</span></pre>
|
1898
|
+
</td>
|
1899
|
+
</tr>
|
1900
|
+
</table>
|
1901
|
+
</div>
|
1902
|
+
|
1903
|
+
<div class="method_details ">
|
1904
|
+
<h3 class="signature " id="page=-instance_method">
|
1905
|
+
|
1906
|
+
#<strong>page=</strong>(value) ⇒ <tt>Object</tt>
|
1907
|
+
|
1908
|
+
|
1909
|
+
|
1910
|
+
|
1911
|
+
|
1912
|
+
</h3><div class="docstring">
|
1913
|
+
<div class="discussion">
|
1914
|
+
|
1915
|
+
<p>Set current page.</p>
|
1916
|
+
|
1917
|
+
|
1918
|
+
</div>
|
1919
|
+
</div>
|
1920
|
+
<div class="tags">
|
1921
|
+
|
1922
|
+
|
1923
|
+
</div><table class="source_code">
|
1924
|
+
<tr>
|
1925
|
+
<td>
|
1926
|
+
<pre class="lines">
|
1927
|
+
|
1928
|
+
|
1929
|
+
117
|
1930
|
+
118
|
1931
|
+
119
|
1932
|
+
120
|
1933
|
+
121
|
1934
|
+
122
|
1935
|
+
123
|
1936
|
+
124
|
1937
|
+
125</pre>
|
1938
|
+
</td>
|
1939
|
+
<td>
|
1940
|
+
<pre class="code"><span class="info file"># File 'lib/ae_easy/core/mock/fake_executor.rb', line 117</span>
|
1941
|
+
|
1942
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_page='>page=</span> <span class='id identifier rubyid_value'>value</span>
|
1943
|
+
<span class='kw'>unless</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
1944
|
+
<span class='id identifier rubyid_value'>value</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../../../AeEasy.html" title="AeEasy (module)">AeEasy</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../Core.html" title="AeEasy::Core (module)">Core</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Mock.html" title="AeEasy::Core::Mock (module)">Mock</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="FakeDb.html" title="AeEasy::Core::Mock::FakeDb (class)">FakeDb</a></span></span><span class='period'>.</span><span class='id identifier rubyid_build_page'><span class='object_link'><a href="FakeDb.html#build_page-class_method" title="AeEasy::Core::Mock::FakeDb.build_page (method)">build_page</a></span></span> <span class='id identifier rubyid_value'>value</span>
|
1945
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_job_id'>job_id</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>job_id</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='kw'>unless</span> <span class='id identifier rubyid_value'>value</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>job_id</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
1946
|
+
<span class='id identifier rubyid_value'>value</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>job_id</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>||=</span> <span class='id identifier rubyid_job_id'>job_id</span>
|
1947
|
+
<span class='id identifier rubyid_db'>db</span><span class='period'>.</span><span class='id identifier rubyid_page_gid'>page_gid</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>gid</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='kw'>unless</span> <span class='id identifier rubyid_value'>value</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>gid</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
1948
|
+
<span class='kw'>end</span>
|
1949
|
+
<span class='ivar'>@page</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span>
|
1950
|
+
<span class='kw'>end</span></pre>
|
1951
|
+
</td>
|
1952
|
+
</tr>
|
1953
|
+
</table>
|
1954
|
+
</div>
|
1955
|
+
|
1956
|
+
<div class="method_details ">
|
1957
|
+
<h3 class="signature " id="pages-instance_method">
|
1958
|
+
|
1959
|
+
#<strong>pages</strong> ⇒ <tt>Array</tt>
|
1960
|
+
|
1961
|
+
|
1962
|
+
|
1963
|
+
|
1964
|
+
|
1965
|
+
</h3><div class="docstring">
|
1966
|
+
<div class="discussion">
|
1967
|
+
|
1968
|
+
<p>Draft pages, usually get saved after execution.</p>
|
1969
|
+
|
1970
|
+
|
1971
|
+
</div>
|
1972
|
+
</div>
|
1973
|
+
<div class="tags">
|
1974
|
+
|
1975
|
+
<p class="tag_title">Returns:</p>
|
1976
|
+
<ul class="return">
|
1977
|
+
|
1978
|
+
<li>
|
1979
|
+
|
1980
|
+
|
1981
|
+
<span class='type'>(<tt>Array</tt>)</span>
|
1982
|
+
|
1983
|
+
|
1984
|
+
|
1985
|
+
</li>
|
1986
|
+
|
1987
|
+
</ul>
|
1988
|
+
|
1989
|
+
</div><table class="source_code">
|
1990
|
+
<tr>
|
1991
|
+
<td>
|
1992
|
+
<pre class="lines">
|
1993
|
+
|
1994
|
+
|
1995
|
+
49
|
1996
|
+
50
|
1997
|
+
51</pre>
|
1998
|
+
</td>
|
1999
|
+
<td>
|
2000
|
+
<pre class="code"><span class="info file"># File 'lib/ae_easy/core/mock/fake_executor.rb', line 49</span>
|
2001
|
+
|
2002
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_pages'>pages</span>
|
2003
|
+
<span class='ivar'>@pages</span> <span class='op'>||=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
2004
|
+
<span class='kw'>end</span></pre>
|
2005
|
+
</td>
|
2006
|
+
</tr>
|
2007
|
+
</table>
|
2008
|
+
</div>
|
2009
|
+
|
2010
|
+
<div class="method_details ">
|
2011
|
+
<h3 class="signature " id="save_outputs-instance_method">
|
2012
|
+
|
2013
|
+
#<strong>save_outputs</strong>(list) ⇒ <tt>Object</tt>
|
2014
|
+
|
2015
|
+
|
2016
|
+
|
2017
|
+
|
2018
|
+
|
2019
|
+
</h3><div class="docstring">
|
2020
|
+
<div class="discussion">
|
2021
|
+
|
2022
|
+
<p>Save an output collection on db.</p>
|
2023
|
+
|
2024
|
+
|
2025
|
+
</div>
|
2026
|
+
</div>
|
2027
|
+
<div class="tags">
|
2028
|
+
<p class="tag_title">Parameters:</p>
|
2029
|
+
<ul class="param">
|
2030
|
+
|
2031
|
+
<li>
|
2032
|
+
|
2033
|
+
<span class='name'>list</span>
|
2034
|
+
|
2035
|
+
|
2036
|
+
<span class='type'>(<tt>Array</tt>)</span>
|
2037
|
+
|
2038
|
+
|
2039
|
+
|
2040
|
+
—
|
2041
|
+
<div class='inline'>
|
2042
|
+
<p>Collection of outputs to save.</p>
|
2043
|
+
</div>
|
2044
|
+
|
2045
|
+
</li>
|
2046
|
+
|
2047
|
+
</ul>
|
2048
|
+
|
2049
|
+
|
2050
|
+
</div><table class="source_code">
|
2051
|
+
<tr>
|
2052
|
+
<td>
|
2053
|
+
<pre class="lines">
|
2054
|
+
|
2055
|
+
|
2056
|
+
147
|
2057
|
+
148
|
2058
|
+
149</pre>
|
2059
|
+
</td>
|
2060
|
+
<td>
|
2061
|
+
<pre class="code"><span class="info file"># File 'lib/ae_easy/core/mock/fake_executor.rb', line 147</span>
|
2062
|
+
|
2063
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_save_outputs'>save_outputs</span> <span class='id identifier rubyid_list'>list</span>
|
2064
|
+
<span class='id identifier rubyid_list'>list</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_output'>output</span><span class='op'>|</span> <span class='id identifier rubyid_db'>db</span><span class='period'>.</span><span class='id identifier rubyid_outputs'>outputs</span> <span class='op'><<</span> <span class='id identifier rubyid_output'>output</span><span class='rbrace'>}</span>
|
2065
|
+
<span class='kw'>end</span></pre>
|
2066
|
+
</td>
|
2067
|
+
</tr>
|
2068
|
+
</table>
|
2069
|
+
</div>
|
2070
|
+
|
2071
|
+
<div class="method_details ">
|
2072
|
+
<h3 class="signature " id="save_pages-instance_method">
|
2073
|
+
|
2074
|
+
#<strong>save_pages</strong>(list) ⇒ <tt>Object</tt>
|
2075
|
+
|
2076
|
+
|
2077
|
+
|
2078
|
+
|
2079
|
+
|
2080
|
+
</h3><div class="docstring">
|
2081
|
+
<div class="discussion">
|
2082
|
+
|
2083
|
+
<p>Save a page collection on db.</p>
|
2084
|
+
|
2085
|
+
|
2086
|
+
</div>
|
2087
|
+
</div>
|
2088
|
+
<div class="tags">
|
2089
|
+
<p class="tag_title">Parameters:</p>
|
2090
|
+
<ul class="param">
|
2091
|
+
|
2092
|
+
<li>
|
2093
|
+
|
2094
|
+
<span class='name'>list</span>
|
2095
|
+
|
2096
|
+
|
2097
|
+
<span class='type'>(<tt>Array</tt>)</span>
|
2098
|
+
|
2099
|
+
|
2100
|
+
|
2101
|
+
—
|
2102
|
+
<div class='inline'>
|
2103
|
+
<p>Collection of pages to save.</p>
|
2104
|
+
</div>
|
2105
|
+
|
2106
|
+
</li>
|
2107
|
+
|
2108
|
+
</ul>
|
2109
|
+
|
2110
|
+
|
2111
|
+
</div><table class="source_code">
|
2112
|
+
<tr>
|
2113
|
+
<td>
|
2114
|
+
<pre class="lines">
|
2115
|
+
|
2116
|
+
|
2117
|
+
140
|
2118
|
+
141
|
2119
|
+
142</pre>
|
2120
|
+
</td>
|
2121
|
+
<td>
|
2122
|
+
<pre class="code"><span class="info file"># File 'lib/ae_easy/core/mock/fake_executor.rb', line 140</span>
|
2123
|
+
|
2124
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_save_pages'>save_pages</span> <span class='id identifier rubyid_list'>list</span>
|
2125
|
+
<span class='id identifier rubyid_list'>list</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_page'>page</span><span class='op'>|</span> <span class='id identifier rubyid_db'>db</span><span class='period'>.</span><span class='id identifier rubyid_pages'>pages</span> <span class='op'><<</span> <span class='id identifier rubyid_page'>page</span><span class='rbrace'>}</span>
|
2126
|
+
<span class='kw'>end</span></pre>
|
2127
|
+
</td>
|
2128
|
+
</tr>
|
2129
|
+
</table>
|
2130
|
+
</div>
|
2131
|
+
|
2132
|
+
<div class="method_details ">
|
2133
|
+
<h3 class="signature " id="saved_outputs-instance_method">
|
2134
|
+
|
2135
|
+
#<strong>saved_outputs</strong> ⇒ <tt>Object</tt>
|
2136
|
+
|
2137
|
+
|
2138
|
+
|
2139
|
+
|
2140
|
+
|
2141
|
+
</h3><div class="docstring">
|
2142
|
+
<div class="discussion">
|
2143
|
+
|
2144
|
+
<p>Retrive a list of saved outputs.</p>
|
2145
|
+
|
2146
|
+
|
2147
|
+
</div>
|
2148
|
+
</div>
|
2149
|
+
<div class="tags">
|
2150
|
+
|
2151
|
+
|
2152
|
+
</div><table class="source_code">
|
2153
|
+
<tr>
|
2154
|
+
<td>
|
2155
|
+
<pre class="lines">
|
2156
|
+
|
2157
|
+
|
2158
|
+
133
|
2159
|
+
134
|
2160
|
+
135</pre>
|
2161
|
+
</td>
|
2162
|
+
<td>
|
2163
|
+
<pre class="code"><span class="info file"># File 'lib/ae_easy/core/mock/fake_executor.rb', line 133</span>
|
2164
|
+
|
2165
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_saved_outputs'>saved_outputs</span>
|
2166
|
+
<span class='id identifier rubyid_db'>db</span><span class='period'>.</span><span class='id identifier rubyid_outputs'>outputs</span>
|
2167
|
+
<span class='kw'>end</span></pre>
|
2168
|
+
</td>
|
2169
|
+
</tr>
|
2170
|
+
</table>
|
2171
|
+
</div>
|
2172
|
+
|
2173
|
+
<div class="method_details ">
|
2174
|
+
<h3 class="signature " id="saved_pages-instance_method">
|
2175
|
+
|
2176
|
+
#<strong>saved_pages</strong> ⇒ <tt>Object</tt>
|
2177
|
+
|
2178
|
+
|
2179
|
+
|
2180
|
+
|
2181
|
+
|
2182
|
+
</h3><div class="docstring">
|
2183
|
+
<div class="discussion">
|
2184
|
+
|
2185
|
+
<p>Retrive a list of saved pages. Drafted pages can be included.</p>
|
2186
|
+
|
2187
|
+
|
2188
|
+
</div>
|
2189
|
+
</div>
|
2190
|
+
<div class="tags">
|
2191
|
+
|
2192
|
+
|
2193
|
+
</div><table class="source_code">
|
2194
|
+
<tr>
|
2195
|
+
<td>
|
2196
|
+
<pre class="lines">
|
2197
|
+
|
2198
|
+
|
2199
|
+
128
|
2200
|
+
129
|
2201
|
+
130</pre>
|
2202
|
+
</td>
|
2203
|
+
<td>
|
2204
|
+
<pre class="code"><span class="info file"># File 'lib/ae_easy/core/mock/fake_executor.rb', line 128</span>
|
2205
|
+
|
2206
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_saved_pages'>saved_pages</span>
|
2207
|
+
<span class='id identifier rubyid_db'>db</span><span class='period'>.</span><span class='id identifier rubyid_pages'>pages</span>
|
2208
|
+
<span class='kw'>end</span></pre>
|
2209
|
+
</td>
|
2210
|
+
</tr>
|
2211
|
+
</table>
|
2212
|
+
</div>
|
2213
|
+
|
2214
|
+
</div>
|
2215
|
+
|
2216
|
+
</div>
|
2217
|
+
|
2218
|
+
<div id="footer">
|
2219
|
+
Generated on Wed Feb 13 21:43:51 2019 by
|
2220
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
2221
|
+
0.9.18 (ruby-2.5.3).
|
2222
|
+
</div>
|
2223
|
+
|
2224
|
+
</div>
|
2225
|
+
</body>
|
2226
|
+
</html>
|