Module: Loggly::ClassMethods

Included in:
Loggly
Defined in:
lib/loggly.rb

Instance Method Summary collapse

Instance Method Details

#connect(config = {}) ⇒ Object



32
33
34
# File 'lib/loggly.rb', line 32

def connect(config = {})
  @connection = Connection.new(:uri => config[:uri], :username => config[:username], :password => config[:password])
end

#connectionObject



28
29
30
# File 'lib/loggly.rb', line 28

def connection
  @connection ? @connection : (raise LogglyConnectionException)
end