Sha256: a25820dd953218b94fdf5a18ce49ca9b5c9f46e6d488cc47f9ba944a0bb6c51b
Contents?: true
Size: 533 Bytes
Versions: 1
Compression:
Stored size: 533 Bytes
Contents
class RailFuel < ActiveRecord::Base set_primary_key :name belongs_to :fuel, :foreign_key => 'fuel_name' [:density, :density_units, :co2_emission_factor, :co2_emission_factor_units, :co2_biogenic_emission_factor, :co2_biogenic_emission_factor_units].each do |method| define_method method do fuel.send(method) end end 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
earth-0.7.0 | lib/earth/rail/rail_fuel.rb |