Class: TransferZero::PayoutMethodMobileProviderEnum
- Inherits:
-
Object
- Object
- TransferZero::PayoutMethodMobileProviderEnum
- Defined in:
- lib/transferzero-sdk/models/payout_method_mobile_provider_enum.rb
Constant Summary collapse
- ORANGE =
"orange".freeze
- TIGO =
"tigo".freeze
- MOOV =
"moov".freeze
- MTN =
"mtn".freeze
- AIRTEL =
"airtel".freeze
- VODAFONE =
"vodafone".freeze
- MPESA =
"mpesa".freeze
- AFRICELL =
"africell".freeze
- TELECOM =
"telecom".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
31 32 33 34 35 |
# File 'lib/transferzero-sdk/models/payout_method_mobile_provider_enum.rb', line 31 def build_from_hash(value) constantValues = PayoutMethodMobileProviderEnum.constants.select { |c| PayoutMethodMobileProviderEnum::const_get(c) == value } raise "Invalid ENUM value #{value} for class #PayoutMethodMobileProviderEnum" if constantValues.empty? && !value.empty? value end |