Module: SBF::Client::Person::Type

Defined in:
lib/stbaldricks/entities/person.rb

Constant Summary collapse

INDIVIDUAL =
'individual'.freeze
BUSINESS =
'business'.freeze
FOUNDATION =
'foundation'.freeze
IDS =
{
  INDIVIDUAL => 1,
  BUSINESS => 2,
  FOUNDATION => 3
}.freeze

Class Method Summary collapse

Class Method Details

.to_s(type_id) ⇒ Object



40
41
42
# File 'lib/stbaldricks/entities/person.rb', line 40

def self.to_s(type_id)
  IDS.key(type_id)
end

.value_of(type) ⇒ Object



44
45
46
# File 'lib/stbaldricks/entities/person.rb', line 44

def self.value_of(type)
  IDS[type]
end