Class: TurnkeyClient::MnemonicLanguage

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

Constant Summary collapse

ENGLISH =
'MNEMONIC_LANGUAGE_ENGLISH'.freeze
SIMPLIFIED_CHINESE =
'MNEMONIC_LANGUAGE_SIMPLIFIED_CHINESE'.freeze
TRADITIONAL_CHINESE =
'MNEMONIC_LANGUAGE_TRADITIONAL_CHINESE'.freeze
CZECH =
'MNEMONIC_LANGUAGE_CZECH'.freeze
FRENCH =
'MNEMONIC_LANGUAGE_FRENCH'.freeze
ITALIAN =
'MNEMONIC_LANGUAGE_ITALIAN'.freeze
JAPANESE =
'MNEMONIC_LANGUAGE_JAPANESE'.freeze
KOREAN =
'MNEMONIC_LANGUAGE_KOREAN'.freeze
SPANISH =
'MNEMONIC_LANGUAGE_SPANISH'.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



28
29
30
31
32
# File 'lib/turnkey_client/models/mnemonic_language.rb', line 28

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