Class: TurnkeyClient::TransactionType

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

Constant Summary collapse

ETHEREUM =
'TRANSACTION_TYPE_ETHEREUM'.freeze
SOLANA =
'TRANSACTION_TYPE_SOLANA'.freeze
TRON =
'TRANSACTION_TYPE_TRON'.freeze
BITCOIN =
'TRANSACTION_TYPE_BITCOIN'.freeze
TEMPO =
'TRANSACTION_TYPE_TEMPO'.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



24
25
26
27
28
# File 'lib/turnkey_client/models/transaction_type.rb', line 24

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