Sha256: 73bd84237be860f6690b7999d66500ff37dc122057ad5d50c6c62e1b37007a95

Contents?: true

Size: 807 Bytes

Versions: 7

Compression:

Stored size: 807 Bytes

Contents

# Not yet in use - for if we want to autocaculate size class stuf - November 10, 2011
AutomobileSizeClassYear.class_eval do
  data_miner do
    import "automobile size class year fuel efficiencies from the 2010 EPA Fuel Economy Trends report",
           :url => 'https://spreadsheets.google.com/pub?key=0AoQJbWqPrREqdDZOLWdDdlZja04xZkJYc3NjeGxQamc&hl=en&gid=0&output=csv' do
      key 'name'
      store 'size_class_name'
      store 'year'
      store 'type_name'
      store 'fuel_efficiency_city', :units_field_name => 'fuel_efficiency_city_units'
      store 'fuel_efficiency_highway', :units_field_name => 'fuel_efficiency_highway_units'
    end
    
    # FIXME TODO verify that size_class_name is never missing?
    # FIXME TODO verify that type_name appears in AutomobileTypeFuelYearAges
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
earth-0.11.7 lib/earth/automobile/automobile_size_class_year/data_miner.rb
earth-0.11.6 lib/earth/automobile/automobile_size_class_year/data_miner.rb
earth-0.11.5 lib/earth/automobile/automobile_size_class_year/data_miner.rb
earth-0.11.4 lib/earth/automobile/automobile_size_class_year/data_miner.rb
earth-0.11.3 lib/earth/automobile/automobile_size_class_year/data_miner.rb
earth-0.11.2 lib/earth/automobile/automobile_size_class_year/data_miner.rb
earth-0.11.1 lib/earth/automobile/automobile_size_class_year/data_miner.rb