Class: TurnkeyClient::HashFunction
- Inherits:
-
Object
- Object
- TurnkeyClient::HashFunction
- Defined in:
- lib/turnkey_client/models/hash_function.rb
Constant Summary collapse
- NO_OP =
'HASH_FUNCTION_NO_OP'.freeze
- SHA256 =
'HASH_FUNCTION_SHA256'.freeze
- KECCAK256 =
'HASH_FUNCTION_KECCAK256'.freeze
- NOT_APPLICABLE =
'HASH_FUNCTION_NOT_APPLICABLE'.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/hash_function.rb', line 24 def build_from_hash(value) constantValues = HashFunction.constants.select { |c| HashFunction::const_get(c) == value } raise "Invalid ENUM value #{value} for class #HashFunction" if constantValues.empty? value end |