Sha256: 3e2bae7437fdb5cda5ed56a7f38ede25db522e36b0ef70ed17eb5b289605e9e8

Contents?: true

Size: 997 Bytes

Versions: 19

Compression:

Stored size: 997 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 Time
    N5M = "5m".freeze
    N30M = "30m".freeze
    N6H = "6h".freeze
    N1D = "1d".freeze
    N1W = "1w".freeze
    N1MONTH = "1month".freeze
    N1Y = "1y".freeze

    def self.all_vars
      @all_vars ||= [N5M, N30M, N6H, N1D, N1W, N1MONTH, N1Y].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 Time.all_vars.include?(value)
      raise "Invalid ENUM value #{value} for class #Time"
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
composio-0.1.18 lib/composio/models/time.rb
composio-0.1.17 lib/composio/models/time.rb
composio-0.1.16 lib/composio/models/time.rb
composio-0.1.15 lib/composio/models/time.rb
composio-0.1.14 lib/composio/models/time.rb
composio-0.1.13 lib/composio/models/time.rb
composio-0.1.12 lib/composio/models/time.rb
composio-0.1.11 lib/composio/models/time.rb
composio-0.1.10 lib/composio/models/time.rb
composio-0.1.9 lib/composio/models/time.rb
composio-0.1.8 lib/composio/models/time.rb
composio-0.1.7 lib/composio/models/time.rb
composio-0.1.6 lib/composio/models/time.rb
composio-0.1.5 lib/composio/models/time.rb
composio-0.1.4 lib/composio/models/time.rb
composio-0.1.3 lib/composio/models/time.rb
composio-0.1.2 lib/composio/models/time.rb
composio-0.1.1 lib/composio/models/time.rb
composio-0.1.0 lib/composio/models/time.rb