rdoc/classes/SsnHighGroupCodeLoader.html in ssn_validator-1.0.7 vs rdoc/classes/SsnHighGroupCodeLoader.html in ssn_validator-1.0.8

- old
+ new

@@ -84,12 +84,12 @@ <div id="method-list"> <h3 class="section-bar">Methods</h3> <div class="name-list"> - <a href="#M000001">load_all_high_group_codes_files</a>&nbsp;&nbsp; - <a href="#M000002">load_current_high_group_codes_file</a>&nbsp;&nbsp; + <a href="#M000006">load_all_high_group_codes_files</a>&nbsp;&nbsp; + <a href="#M000007">load_current_high_group_codes_file</a>&nbsp;&nbsp; </div> </div> </div> @@ -107,23 +107,23 @@ <!-- if method_list --> <div id="methods"> <h3 class="section-bar">Public Class methods</h3> - <div id="method-M000001" class="method-detail"> - <a name="M000001"></a> + <div id="method-M000006" class="method-detail"> + <a name="M000006"></a> <div class="method-heading"> - <a href="#M000001" class="method-signature"> + <a href="#M000006" class="method-signature"> <span class="method-name">load_all_high_group_codes_files</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000001-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000001-source"> + onclick="toggleCode('M000006-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000006-source"> <pre> <span class="ruby-comment cmt"># File lib/ssn_validator/models/ssn_high_group_code_loader.rb, line 4</span> <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">load_all_high_group_codes_files</span> <span class="ruby-identifier">months</span> = [<span class="ruby-value str">'Jan'</span>,<span class="ruby-value str">'Feb'</span>,<span class="ruby-value str">'Mar'</span>,<span class="ruby-value str">'Apr'</span>,<span class="ruby-value str">'May'</span>,<span class="ruby-value str">'June'</span>,<span class="ruby-value str">'July'</span>,<span class="ruby-value str">'Aug'</span>,[<span class="ruby-value str">'Sept'</span>,<span class="ruby-value str">'Sep'</span>],<span class="ruby-value str">'Oct'</span>,<span class="ruby-value str">'Nov'</span>,<span class="ruby-value str">'Dec'</span>] <span class="ruby-identifier">run_file_date</span> = <span class="ruby-constant">SsnHighGroupCode</span>.<span class="ruby-identifier">maximum</span>(<span class="ruby-identifier">:as_of</span>) @@ -160,26 +160,26 @@ </pre> </div> </div> </div> - <div id="method-M000002" class="method-detail"> - <a name="M000002"></a> + <div id="method-M000007" class="method-detail"> + <a name="M000007"></a> <div class="method-heading"> - <a href="#M000002" class="method-signature"> + <a href="#M000007" class="method-signature"> <span class="method-name">load_current_high_group_codes_file</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p> Loads the most recent file from <a href="http://www.socialsecurity.gov/employer/ssns/highgroup.txt">www.socialsecurity.gov/employer/ssns/highgroup.txt</a> </p> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000002-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000002-source"> + onclick="toggleCode('M000007-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000007-source"> <pre> <span class="ruby-comment cmt"># File lib/ssn_validator/models/ssn_high_group_code_loader.rb, line 39</span> <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">load_current_high_group_codes_file</span> <span class="ruby-identifier">text</span> = <span class="ruby-constant">Net</span><span class="ruby-operator">::</span><span class="ruby-constant">HTTP</span>.<span class="ruby-identifier">get</span>(<span class="ruby-constant">URI</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-value str">'http://www.socialsecurity.gov/employer/ssns/highgroup.txt'</span>)) <span class="ruby-identifier">create_records</span>(<span class="ruby-identifier">parse_text</span>(<span class="ruby-identifier">text</span>),<span class="ruby-identifier">extract_as_of_date</span>(<span class="ruby-identifier">text</span>)) \ No newline at end of file