Class: TransferZero::PayoutMethodPixKeyTypeEnum
- Inherits:
-
Object
- Object
- TransferZero::PayoutMethodPixKeyTypeEnum
- Defined in:
- lib/transferzero-sdk/models/payout_method_pix_key_type_enum.rb
Constant Summary collapse
- CPF =
"cpf".freeze
- CNPJ =
"cnpj".freeze
- PHONE =
"phone".freeze
- EMAIL =
"email".freeze
- EVP =
"evp".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
27 28 29 30 31 |
# File 'lib/transferzero-sdk/models/payout_method_pix_key_type_enum.rb', line 27 def build_from_hash(value) constantValues = PayoutMethodPixKeyTypeEnum.constants.select { |c| PayoutMethodPixKeyTypeEnum::const_get(c) == value } raise "Invalid ENUM value #{value} for class #PayoutMethodPixKeyTypeEnum" if constantValues.empty? && !value.empty? value end |