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

Version Path
earth-0.1.2 lib/earth/air/flight_fuel_type.rb
earth-0.1.1 lib/earth/air/flight_fuel_type.rb
earth-0.1.0 lib/earth/air/flight_fuel_type.rb
earth-0.0.43 lib/earth/air/flight_fuel_type.rb
earth-0.0.42 lib/earth/air/flight_fuel_type.rb
earth-0.0.41 lib/earth/air/flight_fuel_type.rb
earth-0.0.40 lib/earth/air/flight_fuel_type.rb
earth-0.0.39 lib/earth/air/flight_fuel_type.rb
earth-0.0.38 lib/earth/air/flight_fuel_type.rb
earth-0.0.37 lib/earth/air/flight_fuel_type.rb
earth-0.0.36 lib/earth/air/flight_fuel_type.rb
earth-0.0.35 lib/earth/air/flight_fuel_type.rb
earth-0.0.34 lib/earth/air/flight_fuel_type.rb
earth-0.0.33 lib/earth/air/flight_fuel_type.rb
earth-0.0.32 lib/earth/air/flight_fuel_type.rb
earth-0.0.31 lib/earth/air/flight_fuel_type.rb
earth-0.0.30 lib/earth/air/flight_fuel_type.rb
earth-0.0.29 lib/earth/air/flight_fuel_type.rb
earth-0.0.28 lib/earth/air/flight_fuel_type.rb
earth-0.0.27 lib/earth/air/flight_fuel_type.rb