Sha256: e6d14ea01e9a2cfb4242f62ddda00aa22bacbd403b931f219ac0f5b6c66273a0
Contents?: true
Size: 987 Bytes
Versions: 7
Compression:
Stored size: 987 Bytes
Contents
=begin #Voucherify API #Voucherify promotion engine REST API. Please see https://docs.voucherify.io/docs for more details. The version of the OpenAPI document: v2018-08-01 Contact: support@voucherify.io Generated by: https://openapi-generator.tech OpenAPI Generator version: 7.0.1 =end require 'date' require 'time' module VoucherifySdk class Junction AND = "and".freeze OR = "or".freeze def self.all_vars @all_vars ||= [AND, OR].freeze end # Builds the enum from string # @param [String] The enum value in the form of the string # @return [String] The enum value def self.build_from_hash(value) new.build_from_hash(value) end # 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) return value if Junction.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #Junction" end end end
Version data entries
7 entries across 7 versions & 1 rubygems