Class: TurnkeyClient::FiatOnRampCryptoCurrency

Inherits:
Object
  • Object
show all
Defined in:
lib/turnkey_client/models/fiat_on_ramp_crypto_currency.rb

Constant Summary collapse

BTC =
'FIAT_ON_RAMP_CRYPTO_CURRENCY_BTC'.freeze
ETH =
'FIAT_ON_RAMP_CRYPTO_CURRENCY_ETH'.freeze
SOL =
'FIAT_ON_RAMP_CRYPTO_CURRENCY_SOL'.freeze
USDC =
'FIAT_ON_RAMP_CRYPTO_CURRENCY_USDC'.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



23
24
25
26
27
# File 'lib/turnkey_client/models/fiat_on_ramp_crypto_currency.rb', line 23

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