Sha256: 81a2909870ee39597c82822ef7dcfb6c5954eda7237af460be20120727bb4a56
Contents?: true
Size: 477 Bytes
Versions: 8
Compression:
Stored size: 477 Bytes
Contents
CensusRegion.class_eval do data_miner do import('the U.S. Census Geographic Terms and Definitions', :url => 'http://www.census.gov/popest/about/geo/state_geocodes_v2009.txt', :skip => 6, :headers => %w{ Region Division FIPS Name }, :select => ::Proc.new { |row| row['Region'].to_i > 0 and row['Division'].to_i == 0 }) do key 'number', :field_name => 'Region' store 'name', :field_name => 'Name' end end end
Version data entries
8 entries across 8 versions & 1 rubygems