Sha256: 6ac6285f065e8f40bc5a3fc9ac390be6d7b5b95541581e4c7f7811cf753500ce

Contents?: true

Size: 685 Bytes

Versions: 74

Compression:

Stored size: 685 Bytes

Contents

ClimateDivision.class_eval do
  data_miner do
    schema Earth.database_options do
      string   'name'
      float    'heating_degree_days'
      float    'cooling_degree_days'
      string   'state_postal_abbreviation'
    end
    
    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

74 entries across 74 versions & 2 rubygems

Version Path
earth-0.0.32 lib/earth/locality/climate_division/data_miner.rb
earth-0.0.31 lib/earth/locality/climate_division/data_miner.rb
earth-0.0.30 lib/earth/locality/climate_division/data_miner.rb
earth-0.0.29 lib/earth/locality/climate_division/data_miner.rb
earth-0.0.28 lib/earth/locality/climate_division/data_miner.rb
earth-0.0.27 lib/earth/locality/climate_division/data_miner.rb
earth-0.0.26 lib/earth/locality/climate_division/data_miner.rb
earth-0.0.24 lib/earth/locality/climate_division/data_miner.rb
earth-0.0.23 lib/earth/locality/climate_division/data_miner.rb
earth-0.0.22 lib/earth/locality/climate_division/data_miner.rb
earth-0.0.21 lib/earth/locality/climate_division/data_miner.rb
earth-0.0.20 lib/earth/locality/climate_division/data_miner.rb
earth-0.0.19 lib/earth/locality/climate_division/data_miner.rb
earth-0.0.18 lib/earth/locality/climate_division/data_miner.rb