Sha256: 56ad812c21b6ce1290fc5c09db67d4c3cfd67b827269c55d37d6a349bd917eb4
Contents?: true
Size: 947 Bytes
Versions: 79
Compression:
Stored size: 947 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 DataSourceLastSyncActions ADD = "ADD".freeze UPDATE = "UPDATE".freeze CANCEL = "CANCEL".freeze REVOKE = "REVOKE".freeze def self.all_vars @all_vars ||= [ADD, UPDATE, CANCEL, REVOKE].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 DataSourceLastSyncActions.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #DataSourceLastSyncActions" end end end
Version data entries
79 entries across 79 versions & 1 rubygems