Module: SBF::Client::Person::Type
- Defined in:
- lib/stbaldricks/entities/person.rb
Constant Summary collapse
- INDIVIDUAL =
'individual'
- BUSINESS =
'business'
- FOUNDATION =
'foundation'
- IDS =
{ INDIVIDUAL => 1, BUSINESS => 2, FOUNDATION => 3 }
Class Method Summary collapse
Class Method Details
.to_s(type_id) ⇒ Object
41 42 43 |
# File 'lib/stbaldricks/entities/person.rb', line 41 def self.to_s(type_id) IDS.key(type_id) end |
.value_of(type) ⇒ Object
45 46 47 |
# File 'lib/stbaldricks/entities/person.rb', line 45 def self.value_of(type) IDS[type] end |