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
VODAFONE =
"vodafone".freeze

Instance Method Summary collapse

Instance Method Details

#build_from_hash(value) ⇒ String

Builds the enum from string



28
29
30
31
32
# File 'lib/transferzero-sdk/models/payout_method_mobile_provider_enum.rb', line 28

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