Class: Hithorizons::IndustryTypes

Inherits:
Object
  • Object
show all
Defined in:
lib/hithorizons/industry_types.rb

Constant Summary collapse

MAPPING =
{
  'A' => 'Agriculture, Forestry, and Fishing',
  'B' => 'Mining',
  'C' => 'Construction',
  'D' => 'Manufacturing',
  'E' => 'Transportation, Communications, Electric, Gas, and Sanitary Services',
  'F' => 'Wholesale Trade',
  'G' => 'Retail Trade',
  'H' => 'Finance, Insurance, and Real Estate',
  'I' => 'Services',
  'J' => 'Public Sector',
  'Y' => 'Unknown industry',
}.freeze

Class Method Summary collapse

Class Method Details

.find_by_code(code) ⇒ Object



19
20
21
# File 'lib/hithorizons/industry_types.rb', line 19

def self.find_by_code(code)
  MAPPING[code] || 'Other'
end