Sha256: 0deea9ac20adc0ed114c82bccad16374f130e23d354e27a9d0cadb333149a24c
Contents?: true
Size: 961 Bytes
Versions: 13
Compression:
Stored size: 961 Bytes
Contents
# Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. require 'date' require 'time' module Algolia module Recommend class EditType REMOVE = "remove".freeze REPLACE = "replace".freeze def self.all_vars @all_vars ||= [REMOVE, REPLACE].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 EditType.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #EditType" end end end end
Version data entries
13 entries across 13 versions & 1 rubygems