Sha256: 8dd6239c125f0a8701e110bb35d072cf6fa702cecf38f7137899d2bcd3916b97

Contents?: true

Size: 370 Bytes

Versions: 20

Compression:

Stored size: 370 Bytes

Contents

# frozen_string_literal: true

module OmniAI
  # A configuration for each agent w/ `api_key` / `host` / `logger`.
  class Config
    attr_accessor :api_key, :host, :logger

    # @return [String]
    def inspect
      masked_api_key = "#{api_key[..2]}***" if api_key
      "#<#{self.class.name} api_key=#{masked_api_key.inspect} host=#{host.inspect}>"
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
omniai-1.2.3 lib/omniai/config.rb
omniai-1.2.2 lib/omniai/config.rb
omniai-1.2.1 lib/omniai/config.rb
omniai-1.2.0 lib/omniai/config.rb
omniai-1.1.6 lib/omniai/config.rb
omniai-1.1.5 lib/omniai/config.rb
omniai-1.1.4 lib/omniai/config.rb
omniai-1.1.2 lib/omniai/config.rb
omniai-1.1.1 lib/omniai/config.rb
omniai-1.1.0 lib/omniai/config.rb
omniai-1.0.9 lib/omniai/config.rb
omniai-1.0.8 lib/omniai/config.rb
omniai-1.0.7 lib/omniai/config.rb
omniai-1.0.6 lib/omniai/config.rb
omniai-1.0.5 lib/omniai/config.rb
omniai-1.0.4 lib/omniai/config.rb
omniai-1.0.3 lib/omniai/config.rb
omniai-1.0.2 lib/omniai/config.rb
omniai-1.0.1 lib/omniai/config.rb
omniai-1.0.0 lib/omniai/config.rb