Class: TransferZero::PayoutMethodCountryEnum
- Inherits:
-
Object
- Object
- TransferZero::PayoutMethodCountryEnum
- 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
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
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 |