Sha256: f14f82859d95375bb3661ff1d437759b3c104761b404f6a9165c05ec0816fc19
Contents?: true
Size: 985 Bytes
Versions: 10
Compression:
Stored size: 985 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 Ingestion class DestinationType SEARCH = "search".freeze INSIGHTS = "insights".freeze def self.all_vars @all_vars ||= [SEARCH, INSIGHTS].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 DestinationType.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #DestinationType" end end end end
Version data entries
10 entries across 10 versions & 1 rubygems