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