Sha256: ca26326ba4acb950009250210a634386f54e1f3c3a7cdb6eb969aecf0c3f406a
Contents?: true
Size: 993 Bytes
Versions: 33
Compression:
Stored size: 993 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 Search class DictionaryEntryType CUSTOM = "custom".freeze STANDARD = "standard".freeze def self.all_vars @all_vars ||= [CUSTOM, STANDARD].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 DictionaryEntryType.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #DictionaryEntryType" end end end end
Version data entries
33 entries across 33 versions & 1 rubygems