Sha256: e636d2ed4b51ea97ba6a08b15692b467811586122013bb605d0695d23f5bbcdd
Contents?: true
Size: 825 Bytes
Versions: 5
Compression:
Stored size: 825 Bytes
Contents
=begin #API Reference #Review our [API Introduction](../api-introduction) to get started. OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git =end require 'date' module TurnkeyClient class HashFunction NO_OP = 'HASH_FUNCTION_NO_OP'.freeze SHA256 = 'HASH_FUNCTION_SHA256'.freeze KECCAK256 = 'HASH_FUNCTION_KECCAK256'.freeze NOT_APPLICABLE = 'HASH_FUNCTION_NOT_APPLICABLE'.freeze # Builds the enum from string # @param [String] The enum value in the form of the string # @return [String] The enum value 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 end end
Version data entries
5 entries across 5 versions & 1 rubygems