Class: Naics2002Naics2007Concordance

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

Constant Summary collapse

TABLE_STRUCTURE =
"\nCREATE TABLE naics2002_naics2007_concordances\n  (\n     row_hash        CHARACTER VARYING(255) NOT NULL PRIMARY KEY,\n     naics_2002_code CHARACTER VARYING(255),\n     naics_2007_code CHARACTER VARYING(255),\n     naics_2002_note CHARACTER VARYING(255)\n  );\n\n"

Class Method Summary collapse

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