Sha256: feea5f9de701aa53913fdde94af547f81342ba2d954f2c5b86c693ccfb42186f
Contents?: true
Size: 937 Bytes
Versions: 55
Compression:
Stored size: 937 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 ExternalSourceItemsOrderBy NAME = "name".freeze ID = "id".freeze DIRECTORIES_FIRST = "directories_first".freeze def self.all_vars @all_vars ||= [NAME, ID, DIRECTORIES_FIRST].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 ExternalSourceItemsOrderBy.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #ExternalSourceItemsOrderBy" end end end
Version data entries
55 entries across 55 versions & 1 rubygems