Class: GreenhouseGas

Inherits:
ActiveRecord::Base
  • Object
show all
Extended by:
Earth::Model
Defined in:
lib/earth/fuel/greenhouse_gas.rb

Constant Summary collapse

TABLE_STRUCTURE =
"\nCREATE TABLE greenhouse_gases\n  (\n     name                     CHARACTER VARYING(255) NOT NULL PRIMARY KEY,\n     abbreviation             CHARACTER VARYING(255),\n     ipcc_report              CHARACTER VARYING(255),\n     time_horizon             INTEGER,\n     time_horizon_units       CHARACTER VARYING(255),\n     global_warming_potential INTEGER\n  );\n\n"

Class Method Summary collapse

Methods included from Earth::Model

extend_mining, extended, registry

Class Method Details

.[](abbreviation) ⇒ Object



23
24
25
# File 'lib/earth/fuel/greenhouse_gas.rb', line 23

def [](abbreviation)
  find_by_abbreviation abbreviation.to_s
end