Class: TurnkeyClient::FiatOnRampBlockchainNetwork
- Inherits:
-
Object
- Object
- TurnkeyClient::FiatOnRampBlockchainNetwork
- Defined in:
- lib/turnkey_client/models/fiat_on_ramp_blockchain_network.rb
Constant Summary collapse
- BITCOIN =
'FIAT_ON_RAMP_BLOCKCHAIN_NETWORK_BITCOIN'.freeze
- ETHEREUM =
'FIAT_ON_RAMP_BLOCKCHAIN_NETWORK_ETHEREUM'.freeze
- SOLANA =
'FIAT_ON_RAMP_BLOCKCHAIN_NETWORK_SOLANA'.freeze
- BASE =
'FIAT_ON_RAMP_BLOCKCHAIN_NETWORK_BASE'.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_blockchain_network.rb', line 23 def build_from_hash(value) constantValues = FiatOnRampBlockchainNetwork.constants.select { |c| FiatOnRampBlockchainNetwork::const_get(c) == value } raise "Invalid ENUM value #{value} for class #FiatOnRampBlockchainNetwork" if constantValues.empty? value end |