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
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
21 22 23 24 25 |
# File 'lib/turnkey_client/models/transaction_type.rb', line 21 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 |