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