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,635 @@
|
|
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::Plugin::Seeder
|
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::Plugin::Seeder";
|
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 (S)</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="../Plugin.html" title="AeEasy::Core::Plugin (module)">Plugin</a></span></span>
|
41
|
+
»
|
42
|
+
<span class="title">Seeder</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::Plugin::Seeder
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
</h1>
|
67
|
+
<div class="box_info">
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
<dl>
|
75
|
+
<dt>Includes:</dt>
|
76
|
+
<dd><span class='object_link'><a href="InitializeHook.html" title="AeEasy::Core::Plugin::InitializeHook (module)">InitializeHook</a></span>, <span class='object_link'><a href="SeederBehavior.html" title="AeEasy::Core::Plugin::SeederBehavior (module)">SeederBehavior</a></span></dd>
|
77
|
+
</dl>
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
<dl>
|
85
|
+
<dt>Defined in:</dt>
|
86
|
+
<dd>lib/ae_easy/core/plugin/seeder.rb</dd>
|
87
|
+
</dl>
|
88
|
+
|
89
|
+
</div>
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
96
|
+
<ul class="summary">
|
97
|
+
|
98
|
+
<li class="public ">
|
99
|
+
<span class="summary_signature">
|
100
|
+
|
101
|
+
<a href="#cookie-instance_method" title="#cookie (instance method)">#<strong>cookie</strong> ⇒ Object </a>
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
</span>
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
<span class="note title readonly">readonly</span>
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
<span class="summary_desc"><div class='inline'>
|
121
|
+
<p>Returns the value of attribute cookie.</p>
|
122
|
+
</div></span>
|
123
|
+
|
124
|
+
</li>
|
125
|
+
|
126
|
+
|
127
|
+
<li class="public ">
|
128
|
+
<span class="summary_signature">
|
129
|
+
|
130
|
+
<a href="#referer-instance_method" title="#referer (instance method)">#<strong>referer</strong> ⇒ Object </a>
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
</span>
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
<span class="note title readonly">readonly</span>
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
<span class="summary_desc"><div class='inline'>
|
150
|
+
<p>Returns the value of attribute referer.</p>
|
151
|
+
</div></span>
|
152
|
+
|
153
|
+
</li>
|
154
|
+
|
155
|
+
|
156
|
+
<li class="public ">
|
157
|
+
<span class="summary_signature">
|
158
|
+
|
159
|
+
<a href="#root_input_dir-instance_method" title="#root_input_dir (instance method)">#<strong>root_input_dir</strong> ⇒ Object </a>
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
</span>
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
<span class="note title readonly">readonly</span>
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
<span class="summary_desc"><div class='inline'>
|
179
|
+
<p>Returns the value of attribute root_input_dir.</p>
|
180
|
+
</div></span>
|
181
|
+
|
182
|
+
</li>
|
183
|
+
|
184
|
+
|
185
|
+
</ul>
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
<h3 class="inherited">Attributes included from <span class='object_link'><a href="ContextIntegrator.html" title="AeEasy::Core::Plugin::ContextIntegrator (module)">ContextIntegrator</a></span></h3>
|
192
|
+
<p class="inherited"><span class='object_link'><a href="ContextIntegrator.html#context-instance_method" title="AeEasy::Core::Plugin::ContextIntegrator#context (method)">#context</a></span></p>
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
<h2>
|
197
|
+
Instance Method Summary
|
198
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
199
|
+
</h2>
|
200
|
+
|
201
|
+
<ul class="summary">
|
202
|
+
|
203
|
+
<li class="public ">
|
204
|
+
<span class="summary_signature">
|
205
|
+
|
206
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(opts = {}) ⇒ Object </a>
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
</span>
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
<span class="summary_desc"><div class='inline'>
|
221
|
+
<p>Initialize seeder and hooks.</p>
|
222
|
+
</div></span>
|
223
|
+
|
224
|
+
</li>
|
225
|
+
|
226
|
+
|
227
|
+
<li class="public ">
|
228
|
+
<span class="summary_signature">
|
229
|
+
|
230
|
+
<a href="#initialize_hook_core_seeder-instance_method" title="#initialize_hook_core_seeder (instance method)">#<strong>initialize_hook_core_seeder</strong>(opts = {}) ⇒ Object </a>
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
</span>
|
235
|
+
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
|
244
|
+
<span class="summary_desc"><div class='inline'>
|
245
|
+
<p>Hook to initialize seeder object.</p>
|
246
|
+
</div></span>
|
247
|
+
|
248
|
+
</li>
|
249
|
+
|
250
|
+
|
251
|
+
</ul>
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="SeederBehavior.html" title="AeEasy::Core::Plugin::SeederBehavior (module)">SeederBehavior</a></span></h3>
|
264
|
+
<p class="inherited"><span class='object_link'><a href="SeederBehavior.html#enqueue-instance_method" title="AeEasy::Core::Plugin::SeederBehavior#enqueue (method)">#enqueue</a></span>, <span class='object_link'><a href="SeederBehavior.html#save-instance_method" title="AeEasy::Core::Plugin::SeederBehavior#save (method)">#save</a></span></p>
|
265
|
+
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
|
274
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="ContextIntegrator.html" title="AeEasy::Core::Plugin::ContextIntegrator (module)">ContextIntegrator</a></span></h3>
|
275
|
+
<p class="inherited"><span class='object_link'><a href="ContextIntegrator.html#initialize_hook_core_context_integrator-instance_method" title="AeEasy::Core::Plugin::ContextIntegrator#initialize_hook_core_context_integrator (method)">#initialize_hook_core_context_integrator</a></span>, <span class='object_link'><a href="ContextIntegrator.html#mock_context-instance_method" title="AeEasy::Core::Plugin::ContextIntegrator#mock_context (method)">#mock_context</a></span></p>
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
|
282
|
+
|
283
|
+
|
284
|
+
|
285
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="InitializeHook.html" title="AeEasy::Core::Plugin::InitializeHook (module)">InitializeHook</a></span></h3>
|
286
|
+
<p class="inherited"><span class='object_link'><a href="InitializeHook.html#initialize_hooks-instance_method" title="AeEasy::Core::Plugin::InitializeHook#initialize_hooks (method)">#initialize_hooks</a></span></p>
|
287
|
+
|
288
|
+
<div id="instance_attr_details" class="attr_details">
|
289
|
+
<h2>Instance Attribute Details</h2>
|
290
|
+
|
291
|
+
|
292
|
+
<span id=""></span>
|
293
|
+
<div class="method_details first">
|
294
|
+
<h3 class="signature first" id="cookie-instance_method">
|
295
|
+
|
296
|
+
#<strong>cookie</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
297
|
+
|
298
|
+
|
299
|
+
|
300
|
+
|
301
|
+
|
302
|
+
</h3><div class="docstring">
|
303
|
+
<div class="discussion">
|
304
|
+
|
305
|
+
<p>Returns the value of attribute cookie</p>
|
306
|
+
|
307
|
+
|
308
|
+
</div>
|
309
|
+
</div>
|
310
|
+
<div class="tags">
|
311
|
+
|
312
|
+
|
313
|
+
</div><table class="source_code">
|
314
|
+
<tr>
|
315
|
+
<td>
|
316
|
+
<pre class="lines">
|
317
|
+
|
318
|
+
|
319
|
+
5
|
320
|
+
6
|
321
|
+
7</pre>
|
322
|
+
</td>
|
323
|
+
<td>
|
324
|
+
<pre class="code"><span class="info file"># File 'lib/ae_easy/core/plugin/seeder.rb', line 5</span>
|
325
|
+
|
326
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_cookie'>cookie</span>
|
327
|
+
<span class='ivar'>@cookie</span>
|
328
|
+
<span class='kw'>end</span></pre>
|
329
|
+
</td>
|
330
|
+
</tr>
|
331
|
+
</table>
|
332
|
+
</div>
|
333
|
+
|
334
|
+
|
335
|
+
<span id=""></span>
|
336
|
+
<div class="method_details ">
|
337
|
+
<h3 class="signature " id="referer-instance_method">
|
338
|
+
|
339
|
+
#<strong>referer</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
340
|
+
|
341
|
+
|
342
|
+
|
343
|
+
|
344
|
+
|
345
|
+
</h3><div class="docstring">
|
346
|
+
<div class="discussion">
|
347
|
+
|
348
|
+
<p>Returns the value of attribute referer</p>
|
349
|
+
|
350
|
+
|
351
|
+
</div>
|
352
|
+
</div>
|
353
|
+
<div class="tags">
|
354
|
+
|
355
|
+
|
356
|
+
</div><table class="source_code">
|
357
|
+
<tr>
|
358
|
+
<td>
|
359
|
+
<pre class="lines">
|
360
|
+
|
361
|
+
|
362
|
+
5
|
363
|
+
6
|
364
|
+
7</pre>
|
365
|
+
</td>
|
366
|
+
<td>
|
367
|
+
<pre class="code"><span class="info file"># File 'lib/ae_easy/core/plugin/seeder.rb', line 5</span>
|
368
|
+
|
369
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_referer'>referer</span>
|
370
|
+
<span class='ivar'>@referer</span>
|
371
|
+
<span class='kw'>end</span></pre>
|
372
|
+
</td>
|
373
|
+
</tr>
|
374
|
+
</table>
|
375
|
+
</div>
|
376
|
+
|
377
|
+
|
378
|
+
<span id=""></span>
|
379
|
+
<div class="method_details ">
|
380
|
+
<h3 class="signature " id="root_input_dir-instance_method">
|
381
|
+
|
382
|
+
#<strong>root_input_dir</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
383
|
+
|
384
|
+
|
385
|
+
|
386
|
+
|
387
|
+
|
388
|
+
</h3><div class="docstring">
|
389
|
+
<div class="discussion">
|
390
|
+
|
391
|
+
<p>Returns the value of attribute root_input_dir</p>
|
392
|
+
|
393
|
+
|
394
|
+
</div>
|
395
|
+
</div>
|
396
|
+
<div class="tags">
|
397
|
+
|
398
|
+
|
399
|
+
</div><table class="source_code">
|
400
|
+
<tr>
|
401
|
+
<td>
|
402
|
+
<pre class="lines">
|
403
|
+
|
404
|
+
|
405
|
+
5
|
406
|
+
6
|
407
|
+
7</pre>
|
408
|
+
</td>
|
409
|
+
<td>
|
410
|
+
<pre class="code"><span class="info file"># File 'lib/ae_easy/core/plugin/seeder.rb', line 5</span>
|
411
|
+
|
412
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_root_input_dir'>root_input_dir</span>
|
413
|
+
<span class='ivar'>@root_input_dir</span>
|
414
|
+
<span class='kw'>end</span></pre>
|
415
|
+
</td>
|
416
|
+
</tr>
|
417
|
+
</table>
|
418
|
+
</div>
|
419
|
+
|
420
|
+
</div>
|
421
|
+
|
422
|
+
|
423
|
+
<div id="instance_method_details" class="method_details_list">
|
424
|
+
<h2>Instance Method Details</h2>
|
425
|
+
|
426
|
+
|
427
|
+
<div class="method_details first">
|
428
|
+
<h3 class="signature first" id="initialize-instance_method">
|
429
|
+
|
430
|
+
#<strong>initialize</strong>(opts = {}) ⇒ <tt>Object</tt>
|
431
|
+
|
432
|
+
|
433
|
+
|
434
|
+
|
435
|
+
|
436
|
+
</h3><div class="docstring">
|
437
|
+
<div class="discussion">
|
438
|
+
|
439
|
+
<p>Initialize seeder and hooks.</p>
|
440
|
+
|
441
|
+
|
442
|
+
</div>
|
443
|
+
</div>
|
444
|
+
<div class="tags">
|
445
|
+
<p class="tag_title">Parameters:</p>
|
446
|
+
<ul class="param">
|
447
|
+
|
448
|
+
<li>
|
449
|
+
|
450
|
+
<span class='name'>opts</span>
|
451
|
+
|
452
|
+
|
453
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
454
|
+
|
455
|
+
|
456
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
457
|
+
|
458
|
+
|
459
|
+
—
|
460
|
+
<div class='inline'>
|
461
|
+
<p>({}) Configuration options.</p>
|
462
|
+
</div>
|
463
|
+
|
464
|
+
</li>
|
465
|
+
|
466
|
+
</ul>
|
467
|
+
|
468
|
+
|
469
|
+
<p class="tag_title">See Also:</p>
|
470
|
+
<ul class="see">
|
471
|
+
|
472
|
+
<li><span class='object_link'><a href="ContextIntegrator.html#initialize_hook_core_context_integrator-instance_method" title="AeEasy::Core::Plugin::ContextIntegrator#initialize_hook_core_context_integrator (method)">ContextIntegrator#initialize_hook_core_context_integrator</a></span></li>
|
473
|
+
|
474
|
+
<li><span class='object_link'><a href="#initialize_hook_core_seeder-instance_method" title="AeEasy::Core::Plugin::Seeder#initialize_hook_core_seeder (method)">#initialize_hook_core_seeder</a></span></li>
|
475
|
+
|
476
|
+
</ul>
|
477
|
+
|
478
|
+
</div><table class="source_code">
|
479
|
+
<tr>
|
480
|
+
<td>
|
481
|
+
<pre class="lines">
|
482
|
+
|
483
|
+
|
484
|
+
28
|
485
|
+
29
|
486
|
+
30</pre>
|
487
|
+
</td>
|
488
|
+
<td>
|
489
|
+
<pre class="code"><span class="info file"># File 'lib/ae_easy/core/plugin/seeder.rb', line 28</span>
|
490
|
+
|
491
|
+
<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>
|
492
|
+
<span class='id identifier rubyid_initialize_hooks'>initialize_hooks</span> <span class='id identifier rubyid_opts'>opts</span>
|
493
|
+
<span class='kw'>end</span></pre>
|
494
|
+
</td>
|
495
|
+
</tr>
|
496
|
+
</table>
|
497
|
+
</div>
|
498
|
+
|
499
|
+
<div class="method_details ">
|
500
|
+
<h3 class="signature " id="initialize_hook_core_seeder-instance_method">
|
501
|
+
|
502
|
+
#<strong>initialize_hook_core_seeder</strong>(opts = {}) ⇒ <tt>Object</tt>
|
503
|
+
|
504
|
+
|
505
|
+
|
506
|
+
|
507
|
+
|
508
|
+
</h3><div class="docstring">
|
509
|
+
<div class="discussion">
|
510
|
+
|
511
|
+
<p>Hook to initialize seeder object.</p>
|
512
|
+
|
513
|
+
|
514
|
+
</div>
|
515
|
+
</div>
|
516
|
+
<div class="tags">
|
517
|
+
<p class="tag_title">Parameters:</p>
|
518
|
+
<ul class="param">
|
519
|
+
|
520
|
+
<li>
|
521
|
+
|
522
|
+
<span class='name'>opts</span>
|
523
|
+
|
524
|
+
|
525
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
526
|
+
|
527
|
+
|
528
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
529
|
+
|
530
|
+
|
531
|
+
—
|
532
|
+
<div class='inline'>
|
533
|
+
<p>({}) Configuration options.</p>
|
534
|
+
</div>
|
535
|
+
|
536
|
+
</li>
|
537
|
+
|
538
|
+
</ul>
|
539
|
+
|
540
|
+
|
541
|
+
|
542
|
+
|
543
|
+
<p class="tag_title">Options Hash (<tt>opts</tt>):</p>
|
544
|
+
<ul class="option">
|
545
|
+
|
546
|
+
<li>
|
547
|
+
<span class="name">:root_input_dir</span>
|
548
|
+
<span class="type">(<tt>String</tt>)</span>
|
549
|
+
<span class="default">
|
550
|
+
|
551
|
+
— default:
|
552
|
+
<tt>nil</tt>
|
553
|
+
|
554
|
+
</span>
|
555
|
+
|
556
|
+
— <div class='inline'>
|
557
|
+
<p>Root directory for inputs.</p>
|
558
|
+
</div>
|
559
|
+
|
560
|
+
</li>
|
561
|
+
|
562
|
+
<li>
|
563
|
+
<span class="name">:referer</span>
|
564
|
+
<span class="type">(<tt>String</tt>)</span>
|
565
|
+
<span class="default">
|
566
|
+
|
567
|
+
— default:
|
568
|
+
<tt>nil</tt>
|
569
|
+
|
570
|
+
</span>
|
571
|
+
|
572
|
+
— <div class='inline'>
|
573
|
+
<p>New pages referer, useful to dynamic setups.</p>
|
574
|
+
</div>
|
575
|
+
|
576
|
+
</li>
|
577
|
+
|
578
|
+
<li>
|
579
|
+
<span class="name">:cookie</span>
|
580
|
+
<span class="type">(<tt>String</tt>)</span>
|
581
|
+
<span class="default">
|
582
|
+
|
583
|
+
— default:
|
584
|
+
<tt>nil</tt>
|
585
|
+
|
586
|
+
</span>
|
587
|
+
|
588
|
+
— <div class='inline'>
|
589
|
+
<p>Cookie to use on seeded pages fetchs.</p>
|
590
|
+
</div>
|
591
|
+
|
592
|
+
</li>
|
593
|
+
|
594
|
+
</ul>
|
595
|
+
|
596
|
+
|
597
|
+
|
598
|
+
</div><table class="source_code">
|
599
|
+
<tr>
|
600
|
+
<td>
|
601
|
+
<pre class="lines">
|
602
|
+
|
603
|
+
|
604
|
+
16
|
605
|
+
17
|
606
|
+
18
|
607
|
+
19
|
608
|
+
20</pre>
|
609
|
+
</td>
|
610
|
+
<td>
|
611
|
+
<pre class="code"><span class="info file"># File 'lib/ae_easy/core/plugin/seeder.rb', line 16</span>
|
612
|
+
|
613
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize_hook_core_seeder'>initialize_hook_core_seeder</span> <span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
614
|
+
<span class='ivar'>@root_input_dir</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:root_input_dir</span><span class='rbracket'>]</span>
|
615
|
+
<span class='ivar'>@referer</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:referer</span><span class='rbracket'>]</span>
|
616
|
+
<span class='ivar'>@cookie</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:cookie</span><span class='rbracket'>]</span>
|
617
|
+
<span class='kw'>end</span></pre>
|
618
|
+
</td>
|
619
|
+
</tr>
|
620
|
+
</table>
|
621
|
+
</div>
|
622
|
+
|
623
|
+
</div>
|
624
|
+
|
625
|
+
</div>
|
626
|
+
|
627
|
+
<div id="footer">
|
628
|
+
Generated on Wed Feb 13 21:43:50 2019 by
|
629
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
630
|
+
0.9.18 (ruby-2.5.3).
|
631
|
+
</div>
|
632
|
+
|
633
|
+
</div>
|
634
|
+
</body>
|
635
|
+
</html>
|