Sha256: d46a191e0f5437e12394112381e99c2a1fbb190e629ce5c4e8e3b13b3783c6f6
Contents?: true
Size: 1.73 KB
Versions: 7
Compression:
Stored size: 1.73 KB
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 StorageFileFormats TXT = "TXT".freeze CSV = "CSV".freeze TSV = "TSV".freeze PDF = "PDF".freeze DOCX = "DOCX".freeze PPTX = "PPTX".freeze XLSX = "XLSX".freeze XLSM = "XLSM".freeze MD = "MD".freeze RTF = "RTF".freeze JSON = "JSON".freeze HTML = "HTML".freeze JPG = "JPG".freeze PNG = "PNG".freeze MP3 = "MP3".freeze MP2 = "MP2".freeze AAC = "AAC".freeze WAV = "WAV".freeze FLAC = "FLAC".freeze PCM = "PCM".freeze M4_A = "M4A".freeze OGG = "OGG".freeze OPUS = "OPUS".freeze MPEG = "MPEG".freeze MPG = "MPG".freeze MP4 = "MP4".freeze WMV = "WMV".freeze AVI = "AVI".freeze MOV = "MOV".freeze MKV = "MKV".freeze FLV = "FLV".freeze WEBM = "WEBM".freeze EML = "EML".freeze MSG = "MSG".freeze def self.all_vars @all_vars ||= [TXT, CSV, TSV, PDF, DOCX, PPTX, XLSX, XLSM, MD, RTF, JSON, HTML, JPG, PNG, MP3, MP2, AAC, WAV, FLAC, PCM, M4_A, OGG, OPUS, MPEG, MPG, MP4, WMV, AVI, MOV, MKV, FLV, WEBM, EML, MSG].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 StorageFileFormats.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #StorageFileFormats" end end end
Version data entries
7 entries across 7 versions & 1 rubygems