Class: TransferZero::PayoutMethodLegalEntityTypeEnum
- Inherits:
-
Object
- Object
- TransferZero::PayoutMethodLegalEntityTypeEnum
- Defined in:
- lib/transferzero-sdk/models/payout_method_legal_entity_type_enum.rb
Constant Summary collapse
- PERSON =
"person".freeze
- SOLE_PROPRIETORSHIP =
"sole_proprietorship".freeze
- PRIVATELY_OWNED_COMPANY =
"privately_owned_company".freeze
- PUBLICLY_OWNED_COMPANY =
"publicly_owned_company".freeze
- GOVERNMENT_OWNED_ENTITY =
"government_owned_entity".freeze
- PARTNERSHIP =
"partnership".freeze
- GO =
"go".freeze
- FINANCIAL_INSTITUTION =
"financial_institution".freeze
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
30 31 32 33 34 |
# File 'lib/transferzero-sdk/models/payout_method_legal_entity_type_enum.rb', line 30 def build_from_hash(value) constantValues = PayoutMethodLegalEntityTypeEnum.constants.select { |c| PayoutMethodLegalEntityTypeEnum::const_get(c) == value } raise "Invalid ENUM value #{value} for class #PayoutMethodLegalEntityTypeEnum" if constantValues.empty? && !value.empty? value end |