Sha256: f0886cf19405278642725157b640ac126008dfcf37c09706666261c9f9a18b32

Contents?: true

Size: 412 Bytes

Versions: 13

Compression:

Stored size: 412 Bytes

Contents

CensusRegion.class_eval do
  data_miner do
    import 'the U.S. Census Geographic Terms and Definitions',
           :url => 'http://www.census.gov/popest/geographic/codes02.csv',
           :skip => 9,
           :select => lambda { |row| row['Region'].to_i > 0 and row['Division'].to_s.strip == 'X'} do
      key   'number', :field_name => 'Region'
      store 'name', :field_name => 'Name'
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
earth-0.11.1 lib/earth/locality/census_region/data_miner.rb
earth-0.11.0 lib/earth/locality/census_region/data_miner.rb
earth-0.7.0 lib/earth/locality/census_region/data_miner.rb
earth-0.6.6 lib/earth/locality/census_region/data_miner.rb
earth-0.6.5 lib/earth/locality/census_region/data_miner.rb
earth-0.6.4 lib/earth/locality/census_region/data_miner.rb
earth-0.6.3 lib/earth/locality/census_region/data_miner.rb
earth-0.6.2 lib/earth/locality/census_region/data_miner.rb
earth-0.6.1 lib/earth/locality/census_region/data_miner.rb
earth-0.6.0 lib/earth/locality/census_region/data_miner.rb
earth-0.5.4 lib/earth/locality/census_region/data_miner.rb
earth-0.5.3 lib/earth/locality/census_region/data_miner.rb
earth-0.5.2 lib/earth/locality/census_region/data_miner.rb