Class: Industry
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Industry
- Defined in:
- lib/earth/industry/industry.rb
Overview
TODO replace this with NAICS 2002?
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.format_naics_code(input) ⇒ Object
17 18 19 |
# File 'lib/earth/industry/industry.rb', line 17 def format_naics_code(input) "%d" % input.to_i end |
Instance Method Details
#trade_industry? ⇒ Boolean
22 23 24 25 |
# File 'lib/earth/industry/industry.rb', line 22 def trade_industry? prefix = naics_code.to_s[0,2] %w{42 44 45}.include?(prefix) end |