Sha256: 8b12c216e99b7e045c4b0e115ea9b548ec659c7ded030d9914ca73128ff665af
Contents?: true
Size: 706 Bytes
Versions: 28
Compression:
Stored size: 706 Bytes
Contents
class FlightFuelType < ActiveRecord::Base # this fallback is jet fuel falls_back_on :emission_factor => (21.09.pounds.to(:kilograms) / 1.gallons.to(:litres)), # in pounds CO2/gallon fuel: http://www.eia.doe.gov/oiaf/1605/excel/Fuel%20Emission%20Factors.xls :radiative_forcing_index => 2, # from Matt :density => 3.057 # kg / gal data_miner do schema do string 'name' float 'emission_factor' float 'radiative_forcing_index' float 'density' end # we just always use the fallback end end
Version data entries
28 entries across 28 versions & 1 rubygems