Sha256: 6059725254cd42d3bc10011f245ae3f06a7770df637952b2e0e63f775758b621

Contents?: true

Size: 953 Bytes

Versions: 3

Compression:

Stored size: 953 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 Plan
    HOBBY = "HOBBY".freeze
    STARTER = "STARTER".freeze
    GROWTH = "GROWTH".freeze
    ENTERPRISE = "ENTERPRISE".freeze

    def self.all_vars
      @all_vars ||= [HOBBY, STARTER, GROWTH, ENTERPRISE].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 Plan.all_vars.include?(value)
      raise "Invalid ENUM value #{value} for class #Plan"
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
composio-0.1.9 lib/composio/models/plan.rb
composio-0.1.8 lib/composio/models/plan.rb
composio-0.1.7 lib/composio/models/plan.rb