Sha256: 9510a1dfa78cbafc7ef1b0b86cf33795d8cf42e9e737ea41376362a864bb8040
Contents?: true
Size: 1011 Bytes
Versions: 7
Compression:
Stored size: 1011 Bytes
Contents
=begin #Carbon #Connect external data to LLMs, no matter the source. The version of the OpenAPI document: 1.0.0 =end require 'date' require 'time' module Carbon class ZendeskFileTypes TICKET = "TICKET".freeze ARTICLE = "ARTICLE".freeze TICKET_ATTACHMENT = "TICKET_ATTACHMENT".freeze SECTION = "SECTION".freeze CATEGORY = "CATEGORY".freeze def self.all_vars @all_vars ||= [TICKET, ARTICLE, TICKET_ATTACHMENT, SECTION, CATEGORY].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 ZendeskFileTypes.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #ZendeskFileTypes" end end end
Version data entries
7 entries across 7 versions & 1 rubygems