Sha256: c7d9ab31c0989701423fc9ecc4b833fa663ab276ce33282c69f81a64a020990c

Contents?: true

Size: 570 Bytes

Versions: 9

Compression:

Stored size: 570 Bytes

Contents

ResidenceFuelType.class_eval do
  data_miner do
    schema Earth.database_options do
      string   'name'
      float    'emission_factor'
      string   'emission_factor_units'
      # float    'energy_content'
      # string   'energy_content_units'
    end
    
    import "a list of residential fuels and their emissions factors",
           :url => 'http://spreadsheets.google.com/pub?key=rukxnmuhhsOsrztTrUaFCXQ&gid=0&output=csv' do
      key 'name'
      store 'emission_factor', :field_name => 'emission_factor', :units_field_name => 'units'
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
earth-0.5.0 lib/earth/residence/residence_fuel_type/data_miner.rb
earth-0.4.12 lib/earth/residence/residence_fuel_type/data_miner.rb
earth-0.4.11 lib/earth/residence/residence_fuel_type/data_miner.rb
earth-0.4.10 lib/earth/residence/residence_fuel_type/data_miner.rb
earth-0.4.9 lib/earth/residence/residence_fuel_type/data_miner.rb
earth-0.4.8 lib/earth/residence/residence_fuel_type/data_miner.rb
earth-0.4.7 lib/earth/residence/residence_fuel_type/data_miner.rb
earth-0.4.6 lib/earth/residence/residence_fuel_type/data_miner.rb
earth-0.4.5 lib/earth/residence/residence_fuel_type/data_miner.rb