Sha256: 1380ef1328eec03ae766a36b417f961672ed6b7b6f9bd7426ee367fe1c27dcd0
Contents?: true
Size: 753 Bytes
Versions: 5
Compression:
Stored size: 753 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 PayloadEncoding HEXADECIMAL = 'PAYLOAD_ENCODING_HEXADECIMAL'.freeze TEXT_UTF8 = 'PAYLOAD_ENCODING_TEXT_UTF8'.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 = PayloadEncoding.constants.select { |c| PayloadEncoding::const_get(c) == value } raise "Invalid ENUM value #{value} for class #PayloadEncoding" if constantValues.empty? value end end end
Version data entries
5 entries across 5 versions & 1 rubygems