Sha256: d0cc63ea37b5a6b636950fb5aca78a0ab7fc0118fcd40e5ec24f50be53a05d44
Contents?: true
Size: 1.08 KB
Versions: 5
Compression:
Stored size: 1.08 KB
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 ParameterVoucherTypeListPublications DISCOUNT = "discount".freeze LOYALTY = "loyalty".freeze def self.all_vars @all_vars ||= [DISCOUNT, LOYALTY].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 ParameterVoucherTypeListPublications.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #ParameterVoucherTypeListPublications" end end end
Version data entries
5 entries across 5 versions & 1 rubygems