Sha256: 002397728fb93bb1911c9bceed0308ccd8b2d6c3c04fed903a0c5d250ba73d98

Contents?: true

Size: 925 Bytes

Versions: 7

Compression:

Stored size: 925 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 JobStatus
    RUNNING = "running".freeze
    SUCCESS = "success".freeze
    FAILED = "failed".freeze

    def self.all_vars
      @all_vars ||= [RUNNING, SUCCESS, FAILED].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 JobStatus.all_vars.include?(value)
      raise "Invalid ENUM value #{value} for class #JobStatus"
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
composio-0.1.6 lib/composio/models/job_status.rb
composio-0.1.5 lib/composio/models/job_status.rb
composio-0.1.4 lib/composio/models/job_status.rb
composio-0.1.3 lib/composio/models/job_status.rb
composio-0.1.2 lib/composio/models/job_status.rb
composio-0.1.1 lib/composio/models/job_status.rb
composio-0.1.0 lib/composio/models/job_status.rb