Class: Sic1987
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Sic1987
- Extended by:
- Earth::Model
- Defined in:
- lib/earth/industry/sic_1987.rb
Constant Summary collapse
- TABLE_STRUCTURE =
<<-EOS CREATE TABLE sic_1987 ( code CHARACTER VARYING(255) NOT NULL PRIMARY KEY, description CHARACTER VARYING(255) ); EOS
Class Method Summary collapse
-
.format_description(description) ⇒ Object
for data import.
Methods included from Earth::Model
extend_mining, extended, registry
Class Method Details
.format_description(description) ⇒ Object
for data import
26 27 28 |
# File 'lib/earth/industry/sic_1987.rb', line 26 def self.format_description(description) (desc = description.match /^(.+?) \(/) ? desc.captures.first : description end |