Method: OmniAI::Client#initialize

Defined in:
lib/omniai/client.rb

#initialize(api_key: nil, logger: nil, host: nil, timeout: nil) ⇒ Client

Returns a new instance of Client.

Parameters:

  • api_key (String, nil) (defaults to: nil)

    optional

  • host (String, nil) (defaults to: nil)

    optional - supports for customzing the host of the client (e.g. ‘localhost:8080’)

  • logger (Logger, nil) (defaults to: nil)

    optional

  • timeout (Integer, nil) (defaults to: nil)

    optional



158
159
160
161
162
163
# File 'lib/omniai/client.rb', line 158

def initialize(api_key: nil, logger: nil, host: nil, timeout: nil)
  @api_key = api_key
  @host = host
  @logger = logger
  @timeout = timeout
end