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