Method: TransferZero::PayoutMethodPixKeyTypeEnum#build_from_hash

Defined in:
lib/transferzero-sdk/models/payout_method_pix_key_type_enum.rb

#build_from_hash(value) ⇒ String

Builds the enum from string

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



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