Sha256: f950e6412a0bdb8127519a3cbf068afbf22b91c639fc581fae45a3d159cd4f0f
Contents?: true
Size: 855 Bytes
Versions: 7
Compression:
Stored size: 855 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 ConfluenceFileTypes SPACE = "SPACE".freeze PAGE = "PAGE".freeze def self.all_vars @all_vars ||= [SPACE, PAGE].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 ConfluenceFileTypes.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #ConfluenceFileTypes" end end end
Version data entries
7 entries across 7 versions & 1 rubygems