Class: TurnkeyClient::AddressFormat
- Inherits:
-
Object
- Object
- TurnkeyClient::AddressFormat
- Defined in:
- lib/turnkey_client/models/address_format.rb
Constant Summary collapse
- UNCOMPRESSED =
'ADDRESS_FORMAT_UNCOMPRESSED'.freeze
- COMPRESSED =
'ADDRESS_FORMAT_COMPRESSED'.freeze
- ETHEREUM =
'ADDRESS_FORMAT_ETHEREUM'.freeze
- SOLANA =
'ADDRESS_FORMAT_SOLANA'.freeze
- COSMOS =
'ADDRESS_FORMAT_COSMOS'.freeze
- TRON =
'ADDRESS_FORMAT_TRON'.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
25 26 27 28 29 |
# File 'lib/turnkey_client/models/address_format.rb', line 25 def build_from_hash(value) constantValues = AddressFormat.constants.select { |c| AddressFormat::const_get(c) == value } raise "Invalid ENUM value #{value} for class #AddressFormat" if constantValues.empty? value end |