Class: Naics2002Naics2007Concordance
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Naics2002Naics2007Concordance
- Extended by:
- Earth::Model
- Defined in:
- lib/earth/industry/naics_2002_naics_2007_concordance.rb
Constant Summary collapse
- TABLE_STRUCTURE =
<<-EOS CREATE TABLE naics2002_naics2007_concordances ( row_hash CHARACTER VARYING(255) NOT NULL PRIMARY KEY, naics_2002_code CHARACTER VARYING(255), naics_2007_code CHARACTER VARYING(255), naics_2002_note CHARACTER VARYING(255) ); EOS
Class Method Summary collapse
-
.extract_note(description) ⇒ Object
for data import.
Methods included from Earth::Model
extend_mining, extended, registry
Class Method Details
.extract_note(description) ⇒ Object
for data import
27 28 29 |
# File 'lib/earth/industry/naics_2002_naics_2007_concordance.rb', line 27 def self.extract_note(description) (note = description.match(/ - (.+)/)) ? note.captures.first : nil end |