Class: LobbyingDisclosureClient::Enums::Prefix
- Inherits:
-
T::Enum
- Object
- T::Enum
- LobbyingDisclosureClient::Enums::Prefix
- Extended by:
- T::Sig
- Includes:
- Interfaces::ValidatableEnum
- Defined in:
- lib/lobbying_disclosure_client/enums/prefix.rb
Instance Method Summary collapse
Instance Method Details
#name ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/lobbying_disclosure_client/enums/prefix.rb', line 23 def name case self when Dr then 'DR.' when Mr then 'MR.' when Mrs then 'MRS.' when Ms then 'MS.' when Mx then 'MX.' when Ptr then 'PTR.' when Rev then 'REV.' else T.absurd(self) end end |