Class: Hithorizons::CompanyTypes

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

Constant Summary collapse

MAPPING =
{
  3 => 'corporation',
  8 => 'joint venture',
  12 => 'partnership of unknown type',
  13 => 'proprietorship',
  50 => 'government body',
  100 => 'cooperative',
  101 => 'non profit organization',
  118 => 'local government body',
  120 => 'foreign company',
}.freeze

Class Method Summary collapse

Class Method Details

.find_by_code(code) ⇒ Object



17
18
19
# File 'lib/hithorizons/company_types.rb', line 17

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