Sha256: d2860212af91e9c9fddf08d38ade491bd3fdd46fc6fb889db068c0955ef2b87d

Contents?: true

Size: 739 Bytes

Versions: 25

Compression:

Stored size: 739 Bytes

Contents

Industry.class_eval do
  data_miner do
    schema Earth.database_options do
      string 'naics_code'
      string 'description'
    end
    
    # FIXME TODO some codes need to be disaggregated:
    # 31-33 "manufacturing" should be 31, 32, 33 all "manufacturing"
    # 44-45 "retail trade" should be 44 and 45 "retail trade"
    # 48-49 "transportation and warehouseing" should be 48 and 49 "transportation and warehousing"
    import "the U.S. Census 2002 NAICS code list",
           :url => 'http://www.census.gov/epcd/naics02/naicod02.txt',
           :skip => 4,
           :headers => false,
           :delimiter => '	' do
      key 'naics_code', :field_number => 0
      store 'description', :field_number => 1
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
earth-0.0.43 lib/earth/industry/industry/data_miner.rb
earth-0.0.42 lib/earth/industry/industry/data_miner.rb
earth-0.0.41 lib/earth/industry/industry/data_miner.rb
earth-0.0.40 lib/earth/industry/industry/data_miner.rb
earth-0.0.39 lib/earth/industry/industry/data_miner.rb
earth-0.0.38 lib/earth/industry/industry/data_miner.rb
earth-0.0.37 lib/earth/industry/industry/data_miner.rb
earth-0.0.36 lib/earth/industry/industry/data_miner.rb
earth-0.0.35 lib/earth/industry/industry/data_miner.rb
earth-0.0.34 lib/earth/industry/industry/data_miner.rb
earth-0.0.33 lib/earth/industry/industry/data_miner.rb
earth-0.0.32 lib/earth/industry/industry/data_miner.rb
earth-0.0.31 lib/earth/industry/industry/data_miner.rb
earth-0.0.30 lib/earth/industry/industry/data_miner.rb
earth-0.0.29 lib/earth/industry/industry/data_miner.rb
earth-0.0.28 lib/earth/industry/industry/data_miner.rb
earth-0.0.27 lib/earth/industry/industry/data_miner.rb
earth-0.0.26 lib/earth/industry/industry/data_miner.rb
earth-0.0.24 lib/earth/industry/industry/data_miner.rb
earth-0.0.23 lib/earth/industry/industry/data_miner.rb