Sha256: 7d0b5c7e65999d3dbcf8ffc6f8689c487e90e6fae74544ec46432eeab70e6019
Contents?: true
Size: 1.1 KB
Versions: 2
Compression:
Stored size: 1.1 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 ApplicableToEffect EVERY = "APPLY_TO_EVERY".freeze CHEAPEST = "APPLY_TO_CHEAPEST".freeze MOST_EXPENSIVE = "APPLY_TO_MOST_EXPENSIVE".freeze def self.all_vars @all_vars ||= [EVERY, CHEAPEST, MOST_EXPENSIVE].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 ApplicableToEffect.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #ApplicableToEffect" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
voucherify-6.0.0 | lib/VoucherifySdk/models/applicable_to_effect.rb |
voucherify-5.0.0 | lib/VoucherifySdk/models/applicable_to_effect.rb |