Class: TransferZero::PayoutMethodMobileProviderEnum

Inherits:
Object
  • Object
show all
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
AIRTELTIGO =
"airteltigo".freeze
VODAFONE =
"vodafone".freeze
MPESA =
"mpesa".freeze
AFRICELL =
"africell".freeze
TELECOM =
"telecom".freeze
MOBICASH =
"mobicash".freeze
EMONEY =
"emoney".freeze
FREE =
"free".freeze
WAVE =
"wave".freeze
EXPRESSO =
"expresso".freeze
TMONEY =
"tmoney".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



38
39
40
41
42
# File 'lib/transferzero-sdk/models/payout_method_mobile_provider_enum.rb', line 38

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