Class: Wildcloud::Logger::Middleware::Logeen::Connection

Inherits:
EventMachine::Connection
  • Object
show all
Defined in:
lib/wildcloud/logger/middleware/logeen.rb

Instance Method Summary collapse

Constructor Details

#initialize(logger) ⇒ Connection

Returns a new instance of Connection.



25
26
27
28
# File 'lib/wildcloud/logger/middleware/logeen.rb', line 25

def initialize(logger)
  super
  @logger = logger
end

Instance Method Details

#unbindObject



30
31
32
33
# File 'lib/wildcloud/logger/middleware/logeen.rb', line 30

def unbind
  @logger.reconnect
  @logger = nil
end