Sha256: a29589f2b7677bbc46bd9c4456ee2ef0f0c5bd0b881e15df020dc690e96faf28

Contents?: true

Size: 450 Bytes

Versions: 4

Compression:

Stored size: 450 Bytes

Contents

Industry.class_eval do
  data_miner do
    process "Start from scratch" do
      delete_all
    end
    
    import "the U.S. Census 2002 NAICS code list",
           :url => 'http://www.census.gov/eos/www/naics/reference_files_tools/2002/naics_2_6_02.txt',
           :skip => 4,
           :headers => false,
           :delimiter => '	' do
      key 'naics_code', :field_number => 0
      store 'description', :field_number => 1
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
earth-0.12.4 lib/earth/industry/industry/data_miner.rb
earth-0.12.3 lib/earth/industry/industry/data_miner.rb
earth-0.12.2 lib/earth/industry/industry/data_miner.rb
earth-0.12.1 lib/earth/industry/industry/data_miner.rb