Class: TransferZero::PayoutMethodCountryEnum

Inherits:
Object
  • Object
show all
Defined in:
lib/transferzero-sdk/models/payout_method_country_enum.rb

Constant Summary collapse

CI =
"CI".freeze
ML =
"ML".freeze
SN =
"SN".freeze
NG =
"NG".freeze
MA =
"MA".freeze
TZ =
"TZ".freeze
GH =
"GH".freeze
UG =
"UG".freeze
KE =
"KE".freeze
NJ =
"NJ".freeze
EU =
"EU".freeze
GB =
"GB".freeze
ZA =
"ZA".freeze
EG =
"EG".freeze

Instance Method Summary collapse

Instance Method Details

#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



36
37
38
39
40
# File 'lib/transferzero-sdk/models/payout_method_country_enum.rb', line 36

def build_from_hash(value)
  constantValues = PayoutMethodCountryEnum.constants.select { |c| PayoutMethodCountryEnum::const_get(c) == value }
  raise "Invalid ENUM value #{value} for class #PayoutMethodCountryEnum" if constantValues.empty? && !value.empty?
  value
end