Sha256: a891c049a9e01d1064fe4918a637ffa21f3f27c19582348159c167d42c0e0219

Contents?: true

Size: 496 Bytes

Versions: 20

Compression:

Stored size: 496 Bytes

Contents

ClimateDivision.class_eval do
  data_miner do
    import "a list of climate divisions and their average heating and cooling degree days",
           :url => 'http://static.brighterplanet.com/science/data/climate/climate_divisions/climate_divisions.csv' do
      key 'name'
      store 'heating_degree_days'
      store 'cooling_degree_days'
      store 'state_postal_abbreviation'
    end
    #associate :state, :key => :state_postal_abbreviation, :foreign_key => :postal_abbreviation
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
earth-0.11.8 lib/earth/locality/climate_division/data_miner.rb
earth-0.11.7 lib/earth/locality/climate_division/data_miner.rb
earth-0.11.6 lib/earth/locality/climate_division/data_miner.rb
earth-0.11.5 lib/earth/locality/climate_division/data_miner.rb
earth-0.11.4 lib/earth/locality/climate_division/data_miner.rb
earth-0.11.3 lib/earth/locality/climate_division/data_miner.rb
earth-0.11.2 lib/earth/locality/climate_division/data_miner.rb
earth-0.11.1 lib/earth/locality/climate_division/data_miner.rb
earth-0.11.0 lib/earth/locality/climate_division/data_miner.rb
earth-0.7.0 lib/earth/locality/climate_division/data_miner.rb
earth-0.6.6 lib/earth/locality/climate_division/data_miner.rb
earth-0.6.5 lib/earth/locality/climate_division/data_miner.rb
earth-0.6.4 lib/earth/locality/climate_division/data_miner.rb
earth-0.6.3 lib/earth/locality/climate_division/data_miner.rb
earth-0.6.2 lib/earth/locality/climate_division/data_miner.rb
earth-0.6.1 lib/earth/locality/climate_division/data_miner.rb
earth-0.6.0 lib/earth/locality/climate_division/data_miner.rb
earth-0.5.4 lib/earth/locality/climate_division/data_miner.rb
earth-0.5.3 lib/earth/locality/climate_division/data_miner.rb
earth-0.5.2 lib/earth/locality/climate_division/data_miner.rb