Class: FuelType
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- FuelType
- Extended by:
- Earth::Model
- Defined in:
- lib/earth/fuel/fuel_type.rb
Overview
DEPRECATED but FuelPurchase still uses this
Constant Summary collapse
- TABLE_STRUCTURE =
"\nCREATE TABLE fuel_types\n (\n name CHARACTER VARYING(255) NOT NULL PRIMARY KEY,\n emission_factor FLOAT,\n emission_factor_units CHARACTER VARYING(255),\n density FLOAT,\n density_units CHARACTER VARYING(255),\n average_purchase_volume FLOAT,\n average_purchase_volume_units CHARACTER VARYING(255)\n );\n\n"
Instance Method Summary collapse
Methods included from Earth::Model
extend_mining, extended, registry
Instance Method Details
#price ⇒ Object
35 36 37 |
# File 'lib/earth/fuel/fuel_type.rb', line 35 def price prices.average :price end |