Sha256: 745bb03a06f55624cdb75a461ac26e8967fef51da7307458166763669675a935

Contents?: true

Size: 517 Bytes

Versions: 10

Compression:

Stored size: 517 Bytes

Contents

require 'earth/fuel'
class RailFuel < ActiveRecord::Base
  self.primary_key = "name"
  
  belongs_to :fuel, :foreign_key => 'fuel_name'
  
  delegate :density, :density_units, :co2_emission_factor, :co2_emission_factor_units, :co2_biogenic_emission_factor, :co2_biogenic_emission_factor_units, :to => :fuel, :allow_nil => true
  
  col :name
  col :fuel_name
  col :ch4_emission_factor, :type => :float
  col :ch4_emission_factor_units
  col :n2o_emission_factor, :type => :float
  col :n2o_emission_factor_units
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
earth-0.11.20 lib/earth/rail/rail_fuel.rb
earth-0.11.19 lib/earth/rail/rail_fuel.rb
earth-0.11.18 lib/earth/rail/rail_fuel.rb
earth-0.11.17 lib/earth/rail/rail_fuel.rb
earth-0.11.16 lib/earth/rail/rail_fuel.rb
earth-0.11.15 lib/earth/rail/rail_fuel.rb
earth-0.11.14 lib/earth/rail/rail_fuel.rb
earth-0.11.13 lib/earth/rail/rail_fuel.rb
earth-0.11.12 lib/earth/rail/rail_fuel.rb
earth-0.11.11 lib/earth/rail/rail_fuel.rb