Sha256: adc6d451b99d486abdba22ef841c6954dcc59c74eb07f4e1028c2a9f6cd43989

Contents?: true

Size: 1.16 KB

Versions: 16

Compression:

Stored size: 1.16 KB

Contents

BusClass.class_eval do
  data_miner do
    import "a list of bus classes and pre-calculated trip and fuel use characteristics",
           :url => 'https://spreadsheets.google.com/pub?hl=en&hl=en&key=0AoQJbWqPrREqdGRsSnJoS1hraGJvR012cDROWXFPbVE&gid=0&output=csv' do
      key   'name'
      store 'distance', :units_field_name => 'distance_units'
      store 'passengers'
      store 'speed', :units_field_name => 'speed_units'
      store 'gasoline_intensity', :units_field_name => 'gasoline_intensity_units'
      store 'diesel_intensity', :units_field_name => 'diesel_intensity_units'
      store 'cng_intensity', :units_field_name => 'cng_intensity_units'
      store 'lng_intensity', :units_field_name => 'lng_intensity_units'
      store 'lpg_intensity', :units_field_name => 'lpg_intensity_units'
      store 'methanol_intensity', :units_field_name => 'methanol_intensity_units'
      store 'biodiesel_intensity', :units_field_name => 'biodiesel_intensity_units'
      store 'electricity_intensity', :units_field_name => 'electricity_intensity_units'
      store 'air_conditioning_emission_factor', :units_field_name => 'air_conditioning_emission_factor_units'
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
earth-1.2.1 lib/earth/bus/bus_class/data_miner.rb
earth-1.1.2 lib/earth/bus/bus_class/data_miner.rb
earth-1.1.1 lib/earth/bus/bus_class/data_miner.rb
earth-1.1.0 lib/earth/bus/bus_class/data_miner.rb
earth-1.0.3 lib/earth/bus/bus_class/data_miner.rb
earth-1.0.2 lib/earth/bus/bus_class/data_miner.rb
earth-1.0.1 lib/earth/bus/bus_class/data_miner.rb
earth-1.0.0 lib/earth/bus/bus_class/data_miner.rb
earth-0.11.7 lib/earth/bus/bus_class/data_miner.rb
earth-0.11.6 lib/earth/bus/bus_class/data_miner.rb
earth-0.11.5 lib/earth/bus/bus_class/data_miner.rb
earth-0.11.4 lib/earth/bus/bus_class/data_miner.rb
earth-0.11.3 lib/earth/bus/bus_class/data_miner.rb
earth-0.11.2 lib/earth/bus/bus_class/data_miner.rb
earth-0.11.1 lib/earth/bus/bus_class/data_miner.rb
earth-0.11.0 lib/earth/bus/bus_class/data_miner.rb