Sha256: f3262f29eb6d48659a53d06420b09a9583fe3269b4e54f7757306b7ff801f3f9
Contents?: true
Size: 892 Bytes
Versions: 18
Compression:
Stored size: 892 Bytes
Contents
=begin #Composio OpenAPI #Composio SDK: Equip your agent with high-quality tools and build your real-world usecase The version of the OpenAPI document: 1.0.0 =end require 'date' require 'time' module Composio class Type ERROR = "error".freeze INFO = "info".freeze DEBUG = "debug".freeze def self.all_vars @all_vars ||= [ERROR, INFO, DEBUG].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 Type.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #Type" end end end
Version data entries
18 entries across 18 versions & 1 rubygems