Method: Elk::Client#configure

Defined in:
lib/elk/client.rb

#configure {|_self| ... } ⇒ Object

Set authentication credentials

client = Elk::Client.new
client.configure do |config|
  config.username = "USERNAME"
  config.password = "PASSWORD"
end

Yields:

  • (_self)

Yield Parameters:

  • _self (Elk::Client)

    the object that the method was called on



29
30
31
# File 'lib/elk/client.rb', line 29

def configure
  yield self
end