Method: Tenk::Client#initialize

Defined in:
lib/client.rb

#initialize(options = {}, &block) ⇒ Client

Initialize a new Tenk client

Parameters:

  • options (Hash) (defaults to: {})

    configuration options for the client

  • block (Block)

    a block which will receive the new client as an arg

See Also:



24
25
26
27
28
29
# File 'lib/client.rb', line 24

def initialize(options = {}, &block)
  self.configuration = Configuration.new(options)
  self.logger = configuration.logger

  yield_or_eval(&block) if block_given?
end