repository-base 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +15 -0
  3. data/.rspec +2 -0
  4. data/.rubocop.yml +27 -0
  5. data/.travis.yml +6 -0
  6. data/.yardopts +1 -0
  7. data/CHANGELOG.md +128 -0
  8. data/Gemfile +4 -0
  9. data/LICENSE +22 -0
  10. data/README.md +132 -0
  11. data/Rakefile +33 -0
  12. data/bin/bundle +105 -0
  13. data/bin/htmldiff +29 -0
  14. data/bin/kramdown +29 -0
  15. data/bin/ldiff +29 -0
  16. data/bin/rake +29 -0
  17. data/bin/rspec +29 -0
  18. data/bin/rubocop +29 -0
  19. data/bin/ruby-parse +29 -0
  20. data/bin/ruby-rewrite +29 -0
  21. data/bin/setup +43 -0
  22. data/bin/yard +29 -0
  23. data/bin/yardoc +29 -0
  24. data/bin/yri +29 -0
  25. data/doc/Repository.html +128 -0
  26. data/doc/Repository/Base.html +1248 -0
  27. data/doc/Repository/Base/Internals.html +133 -0
  28. data/doc/Repository/Base/Internals/RecordDeleter.html +687 -0
  29. data/doc/Repository/Base/Internals/RecordSaver.html +816 -0
  30. data/doc/Repository/Base/Internals/RecordUpdater.html +1026 -0
  31. data/doc/Repository/Base/Internals/SlugFinder.html +986 -0
  32. data/doc/_index.html +176 -0
  33. data/doc/class_list.html +51 -0
  34. data/doc/css/common.css +1 -0
  35. data/doc/css/full_list.css +58 -0
  36. data/doc/css/style.css +499 -0
  37. data/doc/file.CHANGELOG.html +240 -0
  38. data/doc/file.README.html +218 -0
  39. data/doc/file_list.html +61 -0
  40. data/doc/frames.html +17 -0
  41. data/doc/index.html +218 -0
  42. data/doc/js/app.js +248 -0
  43. data/doc/js/full_list.js +216 -0
  44. data/doc/js/jquery.js +4 -0
  45. data/doc/method_list.html +363 -0
  46. data/doc/top-level-namespace.html +110 -0
  47. data/lib/repository/base.rb +115 -0
  48. data/lib/repository/base/internals/internals.rb +6 -0
  49. data/lib/repository/base/internals/record_deleter.rb +46 -0
  50. data/lib/repository/base/internals/record_saver.rb +58 -0
  51. data/lib/repository/base/internals/record_updater.rb +54 -0
  52. data/lib/repository/base/internals/slug_finder.rb +70 -0
  53. data/lib/repository/base/version.rb +12 -0
  54. data/repository-base.gemspec +37 -0
  55. data/spec/repository/base_spec.rb +398 -0
  56. data/spec/spec_helper.rb +14 -0
  57. metadata +281 -0
@@ -0,0 +1,133 @@
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: Repository::Base::Internals
8
+
9
+ &mdash; Documentation by YARD 0.9.12
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 = "Repository::Base::Internals";
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 (I)</a> &raquo;
40
+ <span class='title'><span class='object_link'><a href="../../Repository.html" title="Repository (module)">Repository</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Base.html" title="Repository::Base (class)">Base</a></span></span>
41
+ &raquo;
42
+ <span class="title">Internals</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: Repository::Base::Internals
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+ <dl>
78
+ <dt>Included in:</dt>
79
+ <dd><span class='object_link'><a href="../Base.html" title="Repository::Base (class)">Repository::Base</a></span></dd>
80
+ </dl>
81
+
82
+
83
+
84
+ <dl>
85
+ <dt>Defined in:</dt>
86
+ <dd>lib/repository/base.rb<span class="defines">,<br />
87
+ lib/repository/base/internals/record_deleter.rb,<br /> lib/repository/base/internals/record_saver.rb,<br /> lib/repository/base/internals/record_updater.rb,<br /> lib/repository/base/internals/slug_finder.rb</span>
88
+ </dd>
89
+ </dl>
90
+
91
+ </div>
92
+
93
+ <h2>Overview</h2><div class="docstring">
94
+ <div class="discussion">
95
+
96
+ <p>Internal support code exclusively used by Repository::Base</p>
97
+
98
+
99
+ </div>
100
+ </div>
101
+ <div class="tags">
102
+
103
+
104
+ </div><h2>Defined Under Namespace</h2>
105
+ <p class="children">
106
+
107
+
108
+
109
+
110
+ <strong class="classes">Classes:</strong> <span class='object_link'><a href="Internals/RecordDeleter.html" title="Repository::Base::Internals::RecordDeleter (class)">RecordDeleter</a></span>, <span class='object_link'><a href="Internals/RecordSaver.html" title="Repository::Base::Internals::RecordSaver (class)">RecordSaver</a></span>, <span class='object_link'><a href="Internals/RecordUpdater.html" title="Repository::Base::Internals::RecordUpdater (class)">RecordUpdater</a></span>, <span class='object_link'><a href="Internals/SlugFinder.html" title="Repository::Base::Internals::SlugFinder (class)">SlugFinder</a></span>
111
+
112
+
113
+ </p>
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+
122
+
123
+ </div>
124
+
125
+ <div id="footer">
126
+ Generated on Sat Feb 3 03:00:18 2018 by
127
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
128
+ 0.9.12 (ruby-2.5.0).
129
+ </div>
130
+
131
+ </div>
132
+ </body>
133
+ </html>
@@ -0,0 +1,687 @@
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
+ Class: Repository::Base::Internals::RecordDeleter
8
+
9
+ &mdash; Documentation by YARD 0.9.12
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 = "Repository::Base::Internals::RecordDeleter";
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 (R)</a> &raquo;
40
+ <span class='title'><span class='object_link'><a href="../../../Repository.html" title="Repository (module)">Repository</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../Base.html" title="Repository::Base (class)">Base</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Internals.html" title="Repository::Base::Internals (module)">Internals</a></span></span>
41
+ &raquo;
42
+ <span class="title">RecordDeleter</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>Class: Repository::Base::Internals::RecordDeleter
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+ <dl>
70
+ <dt>Inherits:</dt>
71
+ <dd>
72
+ <span class="inheritName">Object</span>
73
+
74
+ <ul class="fullTree">
75
+ <li>Object</li>
76
+
77
+ <li class="next">Repository::Base::Internals::RecordDeleter</li>
78
+
79
+ </ul>
80
+ <a href="#" class="inheritanceTree">show all</a>
81
+
82
+ </dd>
83
+ </dl>
84
+
85
+
86
+
87
+
88
+
89
+
90
+ <dl>
91
+ <dt>Includes:</dt>
92
+ <dd>Support</dd>
93
+ </dl>
94
+
95
+
96
+
97
+
98
+
99
+
100
+ <dl>
101
+ <dt>Defined in:</dt>
102
+ <dd>lib/repository/base/internals/record_deleter.rb</dd>
103
+ </dl>
104
+
105
+ </div>
106
+
107
+ <h2>Overview</h2><div class="docstring">
108
+ <div class="discussion">
109
+
110
+ <p>Stows away details of reporting update success/failure.</p>
111
+
112
+
113
+ </div>
114
+ </div>
115
+ <div class="tags">
116
+
117
+ <p class="tag_title">Since:</p>
118
+ <ul class="since">
119
+
120
+ <li>
121
+
122
+
123
+
124
+
125
+
126
+ <div class='inline'>
127
+ <p>0.0.5</p>
128
+ </div>
129
+
130
+ </li>
131
+
132
+ </ul>
133
+
134
+ </div>
135
+
136
+
137
+
138
+ <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
139
+ <ul class="summary">
140
+
141
+ <li class="private ">
142
+ <span class="summary_signature">
143
+
144
+ <a href="#dao-instance_method" title="#dao (instance method)">#<strong>dao</strong> &#x21d2; Object </a>
145
+
146
+
147
+
148
+ </span>
149
+
150
+
151
+
152
+
153
+ <span class="note title readonly">readonly</span>
154
+
155
+
156
+
157
+ <span class="note title private">private</span>
158
+
159
+
160
+
161
+
162
+
163
+ <span class="summary_desc"><div class='inline'></div></span>
164
+
165
+ </li>
166
+
167
+
168
+ <li class="private ">
169
+ <span class="summary_signature">
170
+
171
+ <a href="#factory-instance_method" title="#factory (instance method)">#<strong>factory</strong> &#x21d2; Object </a>
172
+
173
+
174
+
175
+ </span>
176
+
177
+
178
+
179
+
180
+ <span class="note title readonly">readonly</span>
181
+
182
+
183
+
184
+ <span class="note title private">private</span>
185
+
186
+
187
+
188
+
189
+
190
+ <span class="summary_desc"><div class='inline'></div></span>
191
+
192
+ </li>
193
+
194
+
195
+ <li class="private ">
196
+ <span class="summary_signature">
197
+
198
+ <a href="#identifier-instance_method" title="#identifier (instance method)">#<strong>identifier</strong> &#x21d2; Object </a>
199
+
200
+
201
+
202
+ </span>
203
+
204
+
205
+
206
+
207
+ <span class="note title readonly">readonly</span>
208
+
209
+
210
+
211
+ <span class="note title private">private</span>
212
+
213
+
214
+
215
+
216
+
217
+ <span class="summary_desc"><div class='inline'></div></span>
218
+
219
+ </li>
220
+
221
+
222
+ </ul>
223
+
224
+
225
+
226
+
227
+
228
+ <h2>
229
+ Instance Method Summary
230
+ <small><a href="#" class="summary_toggle">collapse</a></small>
231
+ </h2>
232
+
233
+ <ul class="summary">
234
+
235
+ <li class="public ">
236
+ <span class="summary_signature">
237
+
238
+ <a href="#delete-instance_method" title="#delete (instance method)">#<strong>delete</strong> &#x21d2; Object </a>
239
+
240
+
241
+
242
+ </span>
243
+
244
+
245
+
246
+
247
+
248
+
249
+
250
+
251
+
252
+ <span class="summary_desc"><div class='inline'>
253
+ <p>Command-pattern method returning indication of success or failure of
254
+ attempt to delete identified record.</p>
255
+ </div></span>
256
+
257
+ </li>
258
+
259
+
260
+ <li class="public ">
261
+ <span class="summary_signature">
262
+
263
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(identifier:, dao:, factory:) &#x21d2; RecordDeleter </a>
264
+
265
+
266
+
267
+ </span>
268
+
269
+
270
+ <span class="note title constructor">constructor</span>
271
+
272
+
273
+
274
+
275
+
276
+
277
+
278
+
279
+ <span class="summary_desc"><div class='inline'>
280
+ <p>Initializes a new instance of `SlugFinder`.</p>
281
+ </div></span>
282
+
283
+ </li>
284
+
285
+
286
+ </ul>
287
+
288
+
289
+
290
+ <div id="constructor_details" class="method_details_list">
291
+ <h2>Constructor Details</h2>
292
+
293
+ <div class="method_details first">
294
+ <h3 class="signature first" id="initialize-instance_method">
295
+
296
+ #<strong>initialize</strong>(identifier:, dao:, factory:) &#x21d2; <tt><span class='object_link'><a href="" title="Repository::Base::Internals::RecordDeleter (class)">RecordDeleter</a></span></tt>
297
+
298
+
299
+
300
+
301
+
302
+ </h3><div class="docstring">
303
+ <div class="discussion">
304
+
305
+ <p>Initializes a new instance of `SlugFinder`.</p>
306
+
307
+
308
+ </div>
309
+ </div>
310
+ <div class="tags">
311
+ <p class="tag_title">Parameters:</p>
312
+ <ul class="param">
313
+
314
+ <li>
315
+
316
+ <span class='name'>identifier</span>
317
+
318
+
319
+ <span class='type'>(<tt>String</tt>)</span>
320
+
321
+
322
+
323
+ &mdash;
324
+ <div class='inline'>
325
+ <p>[Slug](<a
326
+ href="http://en.wikipedia.org/wiki/Semantic_URL#Slug">en.wikipedia.org/wiki/Semantic_URL#Slug</a>)
327
+ for record to be deleted.</p>
328
+ </div>
329
+
330
+ </li>
331
+
332
+ <li>
333
+
334
+ <span class='name'>dao</span>
335
+
336
+
337
+ <span class='type'></span>
338
+
339
+
340
+
341
+ &mdash;
342
+ <div class='inline'>
343
+ <p>Data Access Object implements persistence without business logic.</p>
344
+ </div>
345
+
346
+ </li>
347
+
348
+ <li>
349
+
350
+ <span class='name'>factory</span>
351
+
352
+
353
+ <span class='type'></span>
354
+
355
+
356
+
357
+ &mdash;
358
+ <div class='inline'>
359
+ <p>Factory-pattern class to build an entity from an existing DAO record.</p>
360
+ </div>
361
+
362
+ </li>
363
+
364
+ </ul>
365
+
366
+ <p class="tag_title">Since:</p>
367
+ <ul class="since">
368
+
369
+ <li>
370
+
371
+
372
+
373
+
374
+
375
+ <div class='inline'>
376
+ <p>0.0.5</p>
377
+ </div>
378
+
379
+ </li>
380
+
381
+ </ul>
382
+
383
+ </div><table class="source_code">
384
+ <tr>
385
+ <td>
386
+ <pre class="lines">
387
+
388
+
389
+ 23
390
+ 24
391
+ 25
392
+ 26
393
+ 27</pre>
394
+ </td>
395
+ <td>
396
+ <pre class="code"><span class="info file"># File 'lib/repository/base/internals/record_deleter.rb', line 23</span>
397
+
398
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='label'>identifier:</span><span class='comma'>,</span> <span class='label'>dao:</span><span class='comma'>,</span> <span class='label'>factory:</span><span class='rparen'>)</span>
399
+ <span class='ivar'>@identifier</span> <span class='op'>=</span> <span class='id identifier rubyid_identifier'>identifier</span>
400
+ <span class='ivar'>@dao</span> <span class='op'>=</span> <span class='id identifier rubyid_dao'>dao</span>
401
+ <span class='ivar'>@factory</span> <span class='op'>=</span> <span class='id identifier rubyid_factory'>factory</span>
402
+ <span class='kw'>end</span></pre>
403
+ </td>
404
+ </tr>
405
+ </table>
406
+ </div>
407
+
408
+ </div>
409
+
410
+ <div id="instance_attr_details" class="attr_details">
411
+ <h2>Instance Attribute Details</h2>
412
+
413
+
414
+ <span id=""></span>
415
+ <div class="method_details first">
416
+ <h3 class="signature first" id="dao-instance_method">
417
+
418
+ #<strong>dao</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly, private)</span>
419
+
420
+
421
+
422
+
423
+
424
+ </h3><div class="docstring">
425
+ <div class="discussion">
426
+
427
+
428
+ </div>
429
+ </div>
430
+ <div class="tags">
431
+
432
+ <p class="tag_title">Since:</p>
433
+ <ul class="since">
434
+
435
+ <li>
436
+
437
+
438
+
439
+
440
+
441
+ <div class='inline'>
442
+ <p>0.0.5</p>
443
+ </div>
444
+
445
+ </li>
446
+
447
+ </ul>
448
+
449
+ </div><table class="source_code">
450
+ <tr>
451
+ <td>
452
+ <pre class="lines">
453
+
454
+
455
+ 42
456
+ 43
457
+ 44</pre>
458
+ </td>
459
+ <td>
460
+ <pre class="code"><span class="info file"># File 'lib/repository/base/internals/record_deleter.rb', line 42</span>
461
+
462
+ <span class='kw'>def</span> <span class='id identifier rubyid_dao'>dao</span>
463
+ <span class='ivar'>@dao</span>
464
+ <span class='kw'>end</span></pre>
465
+ </td>
466
+ </tr>
467
+ </table>
468
+ </div>
469
+
470
+
471
+ <span id=""></span>
472
+ <div class="method_details ">
473
+ <h3 class="signature " id="factory-instance_method">
474
+
475
+ #<strong>factory</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly, private)</span>
476
+
477
+
478
+
479
+
480
+
481
+ </h3><div class="docstring">
482
+ <div class="discussion">
483
+
484
+
485
+ </div>
486
+ </div>
487
+ <div class="tags">
488
+
489
+ <p class="tag_title">Since:</p>
490
+ <ul class="since">
491
+
492
+ <li>
493
+
494
+
495
+
496
+
497
+
498
+ <div class='inline'>
499
+ <p>0.0.5</p>
500
+ </div>
501
+
502
+ </li>
503
+
504
+ </ul>
505
+
506
+ </div><table class="source_code">
507
+ <tr>
508
+ <td>
509
+ <pre class="lines">
510
+
511
+
512
+ 42
513
+ 43
514
+ 44</pre>
515
+ </td>
516
+ <td>
517
+ <pre class="code"><span class="info file"># File 'lib/repository/base/internals/record_deleter.rb', line 42</span>
518
+
519
+ <span class='kw'>def</span> <span class='id identifier rubyid_factory'>factory</span>
520
+ <span class='ivar'>@factory</span>
521
+ <span class='kw'>end</span></pre>
522
+ </td>
523
+ </tr>
524
+ </table>
525
+ </div>
526
+
527
+
528
+ <span id=""></span>
529
+ <div class="method_details ">
530
+ <h3 class="signature " id="identifier-instance_method">
531
+
532
+ #<strong>identifier</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly, private)</span>
533
+
534
+
535
+
536
+
537
+
538
+ </h3><div class="docstring">
539
+ <div class="discussion">
540
+
541
+
542
+ </div>
543
+ </div>
544
+ <div class="tags">
545
+
546
+ <p class="tag_title">Since:</p>
547
+ <ul class="since">
548
+
549
+ <li>
550
+
551
+
552
+
553
+
554
+
555
+ <div class='inline'>
556
+ <p>0.0.5</p>
557
+ </div>
558
+
559
+ </li>
560
+
561
+ </ul>
562
+
563
+ </div><table class="source_code">
564
+ <tr>
565
+ <td>
566
+ <pre class="lines">
567
+
568
+
569
+ 42
570
+ 43
571
+ 44</pre>
572
+ </td>
573
+ <td>
574
+ <pre class="code"><span class="info file"># File 'lib/repository/base/internals/record_deleter.rb', line 42</span>
575
+
576
+ <span class='kw'>def</span> <span class='id identifier rubyid_identifier'>identifier</span>
577
+ <span class='ivar'>@identifier</span>
578
+ <span class='kw'>end</span></pre>
579
+ </td>
580
+ </tr>
581
+ </table>
582
+ </div>
583
+
584
+ </div>
585
+
586
+
587
+ <div id="instance_method_details" class="method_details_list">
588
+ <h2>Instance Method Details</h2>
589
+
590
+
591
+ <div class="method_details first">
592
+ <h3 class="signature first" id="delete-instance_method">
593
+
594
+ #<strong>delete</strong> &#x21d2; <tt>Object</tt>
595
+
596
+
597
+
598
+
599
+
600
+ </h3><div class="docstring">
601
+ <div class="discussion">
602
+
603
+ <p>Command-pattern method returning indication of success or failure of
604
+ attempt to delete identified record.</p>
605
+
606
+
607
+ </div>
608
+ </div>
609
+ <div class="tags">
610
+
611
+ <p class="tag_title">Returns:</p>
612
+ <ul class="return">
613
+
614
+ <li>
615
+
616
+
617
+ <span class='type'></span>
618
+
619
+
620
+
621
+
622
+ <div class='inline'>
623
+ <p>Repository::Support::StoreResult</p>
624
+ </div>
625
+
626
+ </li>
627
+
628
+ </ul>
629
+ <p class="tag_title">Since:</p>
630
+ <ul class="since">
631
+
632
+ <li>
633
+
634
+
635
+
636
+
637
+
638
+ <div class='inline'>
639
+ <p>0.0.5</p>
640
+ </div>
641
+
642
+ </li>
643
+
644
+ </ul>
645
+
646
+ </div><table class="source_code">
647
+ <tr>
648
+ <td>
649
+ <pre class="lines">
650
+
651
+
652
+ 32
653
+ 33
654
+ 34
655
+ 35
656
+ 36
657
+ 37
658
+ 38</pre>
659
+ </td>
660
+ <td>
661
+ <pre class="code"><span class="info file"># File 'lib/repository/base/internals/record_deleter.rb', line 32</span>
662
+
663
+ <span class='kw'>def</span> <span class='id identifier rubyid_delete'>delete</span>
664
+ <span class='id identifier rubyid_finder'>finder</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="SlugFinder.html" title="Repository::Base::Internals::SlugFinder (class)">SlugFinder</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="SlugFinder.html#initialize-instance_method" title="Repository::Base::Internals::SlugFinder#initialize (method)">new</a></span></span> <span class='label'>slug:</span> <span class='id identifier rubyid_identifier'>identifier</span><span class='comma'>,</span> <span class='label'>dao:</span> <span class='id identifier rubyid_dao'>dao</span><span class='comma'>,</span> <span class='label'>factory:</span> <span class='id identifier rubyid_factory'>factory</span>
665
+ <span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='id identifier rubyid_finder'>finder</span><span class='period'>.</span><span class='id identifier rubyid_find'>find</span>
666
+ <span class='kw'>return</span> <span class='id identifier rubyid_result'>result</span> <span class='kw'>unless</span> <span class='id identifier rubyid_result'>result</span><span class='period'>.</span><span class='id identifier rubyid_success'>success</span>
667
+ <span class='id identifier rubyid_dao'>dao</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span> <span class='id identifier rubyid_identifier'>identifier</span>
668
+ <span class='id identifier rubyid_result'>result</span>
669
+ <span class='kw'>end</span></pre>
670
+ </td>
671
+ </tr>
672
+ </table>
673
+ </div>
674
+
675
+ </div>
676
+
677
+ </div>
678
+
679
+ <div id="footer">
680
+ Generated on Sat Feb 3 03:00:18 2018 by
681
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
682
+ 0.9.12 (ruby-2.5.0).
683
+ </div>
684
+
685
+ </div>
686
+ </body>
687
+ </html>