Class: State

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

Constant Summary collapse

TABLE_STRUCTURE =
"\nCREATE TABLE states\n  (\n     postal_abbreviation                                CHARACTER VARYING(255) NOT NULL PRIMARY KEY,\n     fips_code                                          INTEGER,\n     name                                               CHARACTER VARYING(255),\n     census_division_number                             INTEGER,\n     petroleum_administration_for_defense_district_code CHARACTER VARYING(255),\n     population                                         INTEGER,\n     electricity_emission_factor                        FLOAT,\n     electricity_emission_factor_units                  CHARACTER VARYING(255),\n     electricity_loss_factor                            FLOAT\n  );\n\n"

Instance Method Summary collapse

Methods included from Earth::Model

extend_mining, extended, registry

Instance Method Details

#countryObject



47
48
49
# File 'lib/earth/locality/state.rb', line 47

def country
  Country.united_states
end