ssn_validator 1.0.9 → 1.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. data/History.txt +5 -0
  2. data/Rakefile +61 -60
  3. data/VERSION.yml +1 -1
  4. data/lib/ssn_validator/models/death_master_file_loader.rb +46 -43
  5. data/rdoc/DeathMasterFile.html +139 -0
  6. data/rdoc/DeathMasterFileLoader.html +384 -0
  7. data/rdoc/LICENSE.html +116 -0
  8. data/rdoc/README_rdoc.html +226 -0
  9. data/rdoc/SsnHighGroupCode.html +139 -0
  10. data/rdoc/SsnHighGroupCodeLoader.html +251 -0
  11. data/rdoc/SsnValidator/Ntis.html +139 -0
  12. data/rdoc/SsnValidator/Ssn.html +417 -0
  13. data/rdoc/SsnValidator.html +134 -0
  14. data/rdoc/created.rid +10 -1
  15. data/rdoc/images/add.png +0 -0
  16. data/rdoc/images/brick.png +0 -0
  17. data/rdoc/images/brick_link.png +0 -0
  18. data/rdoc/images/bug.png +0 -0
  19. data/rdoc/images/bullet_black.png +0 -0
  20. data/rdoc/images/bullet_toggle_minus.png +0 -0
  21. data/rdoc/images/bullet_toggle_plus.png +0 -0
  22. data/rdoc/images/date.png +0 -0
  23. data/rdoc/images/delete.png +0 -0
  24. data/rdoc/images/find.png +0 -0
  25. data/rdoc/images/loadingAnimation.gif +0 -0
  26. data/rdoc/images/macFFBgHack.png +0 -0
  27. data/rdoc/images/package.png +0 -0
  28. data/rdoc/images/page_green.png +0 -0
  29. data/rdoc/images/page_white_text.png +0 -0
  30. data/rdoc/images/page_white_width.png +0 -0
  31. data/rdoc/images/plugin.png +0 -0
  32. data/rdoc/images/ruby.png +0 -0
  33. data/rdoc/images/tag_blue.png +0 -0
  34. data/rdoc/images/tag_green.png +0 -0
  35. data/rdoc/images/transparent.png +0 -0
  36. data/rdoc/images/wrench.png +0 -0
  37. data/rdoc/images/wrench_orange.png +0 -0
  38. data/rdoc/images/zoom.png +0 -0
  39. data/rdoc/index.html +89 -21
  40. data/rdoc/js/darkfish.js +153 -0
  41. data/rdoc/js/jquery.js +18 -0
  42. data/rdoc/js/navigation.js +142 -0
  43. data/rdoc/js/search.js +94 -0
  44. data/rdoc/js/search_index.js +1 -0
  45. data/rdoc/js/searcher.js +228 -0
  46. data/rdoc/lib/ssn_validator/models/death_master_file_loader_rb.html +95 -0
  47. data/rdoc/lib/ssn_validator/models/death_master_file_rb.html +95 -0
  48. data/rdoc/lib/ssn_validator/models/ssn_high_group_code_loader_rb.html +95 -0
  49. data/rdoc/lib/ssn_validator/models/ssn_high_group_code_rb.html +95 -0
  50. data/rdoc/lib/ssn_validator/models/ssn_validator_rb.html +95 -0
  51. data/rdoc/lib/ssn_validator/ntis_rb.html +95 -0
  52. data/rdoc/lib/ssn_validator_rb.html +95 -0
  53. data/rdoc/rdoc.css +543 -0
  54. data/rdoc/table_of_contents.html +107 -0
  55. data/ssn_validator.gemspec +54 -14
  56. metadata +56 -20
@@ -0,0 +1,139 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>Class: SsnValidator::Ntis</title>
8
+
9
+ <link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
10
+
11
+ <script type="text/javascript">
12
+ var rdoc_rel_prefix = "../";
13
+ </script>
14
+
15
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
16
+ <script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
17
+ <script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
18
+ <script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
19
+ <script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
20
+ <script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></script>
21
+
22
+
23
+ <body id="top" class="class">
24
+ <nav id="metadata">
25
+ <nav id="home-section" class="section">
26
+ <h3 class="section-header">
27
+ <a href="../index.html">Home</a>
28
+ <a href="../table_of_contents.html#classes">Classes</a>
29
+ <a href="../table_of_contents.html#methods">Methods</a>
30
+ </h3>
31
+ </nav>
32
+
33
+
34
+ <nav id="search-section" class="section project-section" class="initially-hidden">
35
+ <form action="#" method="get" accept-charset="utf-8">
36
+ <h3 class="section-header">
37
+ <input type="text" name="search" placeholder="Search" id="search-field"
38
+ title="Type to search, Up and Down to navigate, Enter to load">
39
+ </h3>
40
+ </form>
41
+
42
+ <ul id="search-results" class="initially-hidden"></ul>
43
+ </nav>
44
+
45
+
46
+ <div id="file-metadata">
47
+ <nav id="file-list-section" class="section">
48
+ <h3 class="section-header">Defined In</h3>
49
+ <ul>
50
+ <li>lib/ssn_validator/ntis.rb
51
+ </ul>
52
+ </nav>
53
+
54
+
55
+ </div>
56
+
57
+ <div id="class-metadata">
58
+
59
+ <nav id="parent-class-section" class="section">
60
+ <h3 class="section-header">Parent</h3>
61
+
62
+ <p class="link">Object
63
+
64
+ </nav>
65
+
66
+
67
+
68
+ </div>
69
+
70
+ <div id="project-metadata">
71
+ <nav id="fileindex-section" class="section project-section">
72
+ <h3 class="section-header">Pages</h3>
73
+
74
+ <ul>
75
+
76
+ <li class="file"><a href="../LICENSE.html">LICENSE</a>
77
+
78
+ <li class="file"><a href="../README_rdoc.html">README</a>
79
+
80
+ </ul>
81
+ </nav>
82
+
83
+ <nav id="classindex-section" class="section project-section">
84
+ <h3 class="section-header">Class and Module Index</h3>
85
+
86
+ <ul class="link-list">
87
+
88
+ <li><a href="../SsnValidator.html">SsnValidator</a>
89
+
90
+ <li><a href="../SsnValidator/Ntis.html">SsnValidator::Ntis</a>
91
+
92
+ <li><a href="../SsnValidator/Ssn.html">SsnValidator::Ssn</a>
93
+
94
+ <li><a href="../DeathMasterFile.html">DeathMasterFile</a>
95
+
96
+ <li><a href="../DeathMasterFileLoader.html">DeathMasterFileLoader</a>
97
+
98
+ <li><a href="../SsnHighGroupCode.html">SsnHighGroupCode</a>
99
+
100
+ <li><a href="../SsnHighGroupCodeLoader.html">SsnHighGroupCodeLoader</a>
101
+
102
+ </ul>
103
+ </nav>
104
+
105
+ </div>
106
+ </nav>
107
+
108
+ <div id="documentation">
109
+ <h1 class="class">class SsnValidator::Ntis</h1>
110
+
111
+ <div id="description" class="description">
112
+
113
+ </div><!-- description -->
114
+
115
+
116
+
117
+
118
+ <section id="5Buntitled-5D" class="documentation-section">
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+ <!-- Methods -->
128
+
129
+ </section><!-- 5Buntitled-5D -->
130
+
131
+ </div><!-- documentation -->
132
+
133
+
134
+ <footer id="validator-badges">
135
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
136
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.11.
137
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
138
+ </footer>
139
+
@@ -0,0 +1,417 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>Class: SsnValidator::Ssn</title>
8
+
9
+ <link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
10
+
11
+ <script type="text/javascript">
12
+ var rdoc_rel_prefix = "../";
13
+ </script>
14
+
15
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
16
+ <script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
17
+ <script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
18
+ <script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
19
+ <script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
20
+ <script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></script>
21
+
22
+
23
+ <body id="top" class="class">
24
+ <nav id="metadata">
25
+ <nav id="home-section" class="section">
26
+ <h3 class="section-header">
27
+ <a href="../index.html">Home</a>
28
+ <a href="../table_of_contents.html#classes">Classes</a>
29
+ <a href="../table_of_contents.html#methods">Methods</a>
30
+ </h3>
31
+ </nav>
32
+
33
+
34
+ <nav id="search-section" class="section project-section" class="initially-hidden">
35
+ <form action="#" method="get" accept-charset="utf-8">
36
+ <h3 class="section-header">
37
+ <input type="text" name="search" placeholder="Search" id="search-field"
38
+ title="Type to search, Up and Down to navigate, Enter to load">
39
+ </h3>
40
+ </form>
41
+
42
+ <ul id="search-results" class="initially-hidden"></ul>
43
+ </nav>
44
+
45
+
46
+ <div id="file-metadata">
47
+ <nav id="file-list-section" class="section">
48
+ <h3 class="section-header">Defined In</h3>
49
+ <ul>
50
+ <li>lib/ssn_validator/models/ssn_validator.rb
51
+ </ul>
52
+ </nav>
53
+
54
+
55
+ </div>
56
+
57
+ <div id="class-metadata">
58
+
59
+ <nav id="parent-class-section" class="section">
60
+ <h3 class="section-header">Parent</h3>
61
+
62
+ <p class="link">Object
63
+
64
+ </nav>
65
+
66
+
67
+ <!-- Method Quickref -->
68
+ <nav id="method-list-section" class="section">
69
+ <h3 class="section-header">Methods</h3>
70
+
71
+ <ul class="link-list">
72
+
73
+ <li><a href="#method-c-new">::new</a>
74
+
75
+ <li><a href="#method-i-death_master_file_hit-3F">#death_master_file_hit?</a>
76
+
77
+ <li><a href="#method-i-death_master_file_record">#death_master_file_record</a>
78
+
79
+ <li><a href="#method-i-valid-3F">#valid?</a>
80
+
81
+ </ul>
82
+ </nav>
83
+
84
+ </div>
85
+
86
+ <div id="project-metadata">
87
+ <nav id="fileindex-section" class="section project-section">
88
+ <h3 class="section-header">Pages</h3>
89
+
90
+ <ul>
91
+
92
+ <li class="file"><a href="../LICENSE.html">LICENSE</a>
93
+
94
+ <li class="file"><a href="../README_rdoc.html">README</a>
95
+
96
+ </ul>
97
+ </nav>
98
+
99
+ <nav id="classindex-section" class="section project-section">
100
+ <h3 class="section-header">Class and Module Index</h3>
101
+
102
+ <ul class="link-list">
103
+
104
+ <li><a href="../SsnValidator.html">SsnValidator</a>
105
+
106
+ <li><a href="../SsnValidator/Ntis.html">SsnValidator::Ntis</a>
107
+
108
+ <li><a href="../SsnValidator/Ssn.html">SsnValidator::Ssn</a>
109
+
110
+ <li><a href="../DeathMasterFile.html">DeathMasterFile</a>
111
+
112
+ <li><a href="../DeathMasterFileLoader.html">DeathMasterFileLoader</a>
113
+
114
+ <li><a href="../SsnHighGroupCode.html">SsnHighGroupCode</a>
115
+
116
+ <li><a href="../SsnHighGroupCodeLoader.html">SsnHighGroupCodeLoader</a>
117
+
118
+ </ul>
119
+ </nav>
120
+
121
+ </div>
122
+ </nav>
123
+
124
+ <div id="documentation">
125
+ <h1 class="class">class SsnValidator::Ssn</h1>
126
+
127
+ <div id="description" class="description">
128
+
129
+ </div><!-- description -->
130
+
131
+
132
+
133
+
134
+ <section id="5Buntitled-5D" class="documentation-section">
135
+
136
+
137
+
138
+
139
+
140
+
141
+
142
+ <!-- Attributes -->
143
+ <section id="attribute-method-details" class="method-section section">
144
+ <h3 class="section-header">Attributes</h3>
145
+
146
+
147
+ <div id="attribute-i-area" class="method-detail">
148
+ <div class="method-heading attribute-method-heading">
149
+ <span class="method-name">area</span><span
150
+ class="attribute-access-type">[R]</span>
151
+ </div>
152
+
153
+ <div class="method-description">
154
+
155
+
156
+
157
+ </div>
158
+ </div>
159
+
160
+ <div id="attribute-i-as_of" class="method-detail">
161
+ <div class="method-heading attribute-method-heading">
162
+ <span class="method-name">as_of</span><span
163
+ class="attribute-access-type">[R]</span>
164
+ </div>
165
+
166
+ <div class="method-description">
167
+
168
+
169
+
170
+ </div>
171
+ </div>
172
+
173
+ <div id="attribute-i-errors" class="method-detail">
174
+ <div class="method-heading attribute-method-heading">
175
+ <span class="method-name">errors</span><span
176
+ class="attribute-access-type">[R]</span>
177
+ </div>
178
+
179
+ <div class="method-description">
180
+
181
+
182
+
183
+ </div>
184
+ </div>
185
+
186
+ <div id="attribute-i-group" class="method-detail">
187
+ <div class="method-heading attribute-method-heading">
188
+ <span class="method-name">group</span><span
189
+ class="attribute-access-type">[R]</span>
190
+ </div>
191
+
192
+ <div class="method-description">
193
+
194
+
195
+
196
+ </div>
197
+ </div>
198
+
199
+ <div id="attribute-i-serial_number" class="method-detail">
200
+ <div class="method-heading attribute-method-heading">
201
+ <span class="method-name">serial_number</span><span
202
+ class="attribute-access-type">[R]</span>
203
+ </div>
204
+
205
+ <div class="method-description">
206
+
207
+
208
+
209
+ </div>
210
+ </div>
211
+
212
+ <div id="attribute-i-ssn" class="method-detail">
213
+ <div class="method-heading attribute-method-heading">
214
+ <span class="method-name">ssn</span><span
215
+ class="attribute-access-type">[R]</span>
216
+ </div>
217
+
218
+ <div class="method-description">
219
+
220
+
221
+
222
+ </div>
223
+ </div>
224
+
225
+ </section><!-- attribute-method-details -->
226
+
227
+
228
+ <!-- Methods -->
229
+
230
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section section">
231
+ <h3 class="section-header">Public Class Methods</h3>
232
+
233
+
234
+ <div id="method-c-new" class="method-detail ">
235
+
236
+ <div class="method-heading">
237
+ <span class="method-name">new</span><span
238
+ class="method-args">(ssn)</span>
239
+ <span class="method-click-advice">click to toggle source</span>
240
+ </div>
241
+
242
+
243
+ <div class="method-description">
244
+
245
+ <p>Instantiate the object passing in a social security number. The ssn can be
246
+ a string or integer, with or without the ‘-’s.</p>
247
+
248
+
249
+
250
+ <div class="method-source-code" id="new-source">
251
+ <pre><span class="ruby-comment"># File lib/ssn_validator/models/ssn_validator.rb, line 10</span>
252
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">ssn</span>)
253
+ <span class="ruby-ivar">@errors</span> = []
254
+ <span class="ruby-identifier">ssn</span> = <span class="ruby-identifier">ssn</span>.<span class="ruby-identifier">to_s</span>
255
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">ssn</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/-/</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">ssn</span> <span class="ruby-operator">!~</span> <span class="ruby-regexp">/\d\d\d-\d\d-\d\d\d\d/</span>
256
+ <span class="ruby-ivar">@errors</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-string">'Hyphen misplaced.'</span>
257
+ <span class="ruby-keyword">end</span>
258
+
259
+ <span class="ruby-identifier">ssn</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-string">'-'</span>,<span class="ruby-string">''</span>)
260
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">ssn</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">!=</span> <span class="ruby-value">9</span>
261
+ <span class="ruby-ivar">@errors</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-string">'SSN not 9 digits long.'</span>
262
+ <span class="ruby-keyword">end</span>
263
+
264
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">ssn</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/\D/</span>
265
+ <span class="ruby-ivar">@errors</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-string">'Non-digit found.'</span>
266
+ <span class="ruby-keyword">end</span>
267
+
268
+ <span class="ruby-comment">#known dummy numbers</span>
269
+ <span class="ruby-keyword">if</span> [<span class="ruby-string">&quot;078051120&quot;</span>,<span class="ruby-string">&quot;111111111&quot;</span>,<span class="ruby-string">&quot;123456789&quot;</span>,<span class="ruby-string">&quot;219099999&quot;</span>,<span class="ruby-string">&quot;999999999&quot;</span>].<span class="ruby-identifier">include?</span> <span class="ruby-identifier">ssn</span> <span class="ruby-operator">||</span> (<span class="ruby-identifier">ssn</span> <span class="ruby-operator">&gt;=</span> <span class="ruby-string">&quot;987654320&quot;</span> <span class="ruby-keyword">and</span> <span class="ruby-identifier">ssn</span> <span class="ruby-operator">&lt;=</span> <span class="ruby-string">&quot;987654329&quot;</span>)
270
+ <span class="ruby-ivar">@errors</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-string">&quot;Known dummy SSN.&quot;</span>
271
+ <span class="ruby-keyword">end</span>
272
+ <span class="ruby-comment">#known invalid area, group and serial numbers</span>
273
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">ssn</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/\d{3}00\d{4}|0000\Z/</span>
274
+ <span class="ruby-ivar">@errors</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-string">&quot;Invalid group or serial number.&quot;</span>
275
+ <span class="ruby-keyword">end</span>
276
+
277
+ <span class="ruby-ivar">@ssn</span> = <span class="ruby-identifier">ssn</span>
278
+ <span class="ruby-ivar">@area</span> = <span class="ruby-identifier">ssn</span>.<span class="ruby-identifier">first</span>(<span class="ruby-value">3</span>)
279
+ <span class="ruby-ivar">@group</span> = <span class="ruby-identifier">ssn</span>[<span class="ruby-value">3</span>,<span class="ruby-value">2</span>]
280
+ <span class="ruby-ivar">@serial_number</span> = <span class="ruby-identifier">ssn</span>.<span class="ruby-identifier">last</span>(<span class="ruby-value">4</span>)
281
+
282
+ <span class="ruby-keyword">if</span> <span class="ruby-ivar">@errors</span>.<span class="ruby-identifier">empty?</span>
283
+ <span class="ruby-ivar">@ssn_high_group_code</span> = <span class="ruby-constant">SsnHighGroupCode</span>.<span class="ruby-identifier">find_by_area</span>(<span class="ruby-ivar">@area</span>, <span class="ruby-value">:order</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-string">'as_of desc'</span>)
284
+ <span class="ruby-keyword">if</span> <span class="ruby-ivar">@ssn_high_group_code</span>.<span class="ruby-identifier">nil?</span>
285
+ <span class="ruby-ivar">@errors</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;Area '#{@area}' has not been assigned.&quot;</span>
286
+ <span class="ruby-keyword">else</span>
287
+ <span class="ruby-ivar">@as_of</span> = <span class="ruby-ivar">@ssn_high_group_code</span>.<span class="ruby-identifier">as_of</span>
288
+
289
+ <span class="ruby-identifier">define_group_ranks</span>
290
+
291
+ <span class="ruby-keyword">if</span> <span class="ruby-ivar">@group_ranks</span>[<span class="ruby-ivar">@group</span>] <span class="ruby-operator">&gt;</span> <span class="ruby-ivar">@group_ranks</span>[<span class="ruby-ivar">@ssn_high_group_code</span>.<span class="ruby-identifier">group</span>]
292
+ <span class="ruby-ivar">@errors</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;Group '#{@group}' has not been assigned yet for area '#{@area}'&quot;</span>
293
+ <span class="ruby-keyword">end</span>
294
+ <span class="ruby-keyword">end</span>
295
+ <span class="ruby-keyword">end</span>
296
+
297
+
298
+ <span class="ruby-keyword">end</span></pre>
299
+ </div><!-- new-source -->
300
+
301
+ </div>
302
+
303
+
304
+
305
+
306
+ </div><!-- new-method -->
307
+
308
+
309
+ </section><!-- public-class-method-details -->
310
+
311
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
312
+ <h3 class="section-header">Public Instance Methods</h3>
313
+
314
+
315
+ <div id="method-i-death_master_file_hit-3F" class="method-detail ">
316
+
317
+ <div class="method-heading">
318
+ <span class="method-name">death_master_file_hit?</span><span
319
+ class="method-args">()</span>
320
+ <span class="method-click-advice">click to toggle source</span>
321
+ </div>
322
+
323
+
324
+ <div class="method-description">
325
+
326
+ <p>Determines if the passed in ssn belongs to the deceased.</p>
327
+
328
+
329
+
330
+ <div class="method-source-code" id="death_master_file_hit-3F-source">
331
+ <pre><span class="ruby-comment"># File lib/ssn_validator/models/ssn_validator.rb, line 70</span>
332
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">death_master_file_hit?</span>
333
+ <span class="ruby-operator">!</span><span class="ruby-identifier">death_master_file_record</span>.<span class="ruby-identifier">nil?</span>
334
+ <span class="ruby-keyword">end</span></pre>
335
+ </div><!-- death_master_file_hit-3F-source -->
336
+
337
+ </div>
338
+
339
+
340
+
341
+
342
+ </div><!-- death_master_file_hit-3F-method -->
343
+
344
+
345
+ <div id="method-i-death_master_file_record" class="method-detail ">
346
+
347
+ <div class="method-heading">
348
+ <span class="method-name">death_master_file_record</span><span
349
+ class="method-args">()</span>
350
+ <span class="method-click-advice">click to toggle source</span>
351
+ </div>
352
+
353
+
354
+ <div class="method-description">
355
+
356
+ <p>returns the death master record if there is one.</p>
357
+
358
+
359
+
360
+ <div class="method-source-code" id="death_master_file_record-source">
361
+ <pre><span class="ruby-comment"># File lib/ssn_validator/models/ssn_validator.rb, line 65</span>
362
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">death_master_file_record</span>
363
+ <span class="ruby-constant">DeathMasterFile</span>.<span class="ruby-identifier">find_by_social_security_number</span>(<span class="ruby-ivar">@ssn</span>)
364
+ <span class="ruby-keyword">end</span></pre>
365
+ </div><!-- death_master_file_record-source -->
366
+
367
+ </div>
368
+
369
+
370
+
371
+
372
+ </div><!-- death_master_file_record-method -->
373
+
374
+
375
+ <div id="method-i-valid-3F" class="method-detail ">
376
+
377
+ <div class="method-heading">
378
+ <span class="method-name">valid?</span><span
379
+ class="method-args">()</span>
380
+ <span class="method-click-advice">click to toggle source</span>
381
+ </div>
382
+
383
+
384
+ <div class="method-description">
385
+
386
+ <p>Determines whether or not the passed in ssn passed all validations.</p>
387
+
388
+
389
+
390
+ <div class="method-source-code" id="valid-3F-source">
391
+ <pre><span class="ruby-comment"># File lib/ssn_validator/models/ssn_validator.rb, line 60</span>
392
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">valid?</span>
393
+ <span class="ruby-ivar">@errors</span>.<span class="ruby-identifier">empty?</span>
394
+ <span class="ruby-keyword">end</span></pre>
395
+ </div><!-- valid-3F-source -->
396
+
397
+ </div>
398
+
399
+
400
+
401
+
402
+ </div><!-- valid-3F-method -->
403
+
404
+
405
+ </section><!-- public-instance-method-details -->
406
+
407
+ </section><!-- 5Buntitled-5D -->
408
+
409
+ </div><!-- documentation -->
410
+
411
+
412
+ <footer id="validator-badges">
413
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
414
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.11.
415
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
416
+ </footer>
417
+