Class: Superbolt::Connection::App

Inherits:
Base
  • Object
show all
Defined in:
lib/superbolt/connection/app.rb

Instance Attribute Summary

Attributes inherited from Base

#config, #name

Instance Method Summary collapse

Methods inherited from Base

#channel, default_options, #initialize, #q

Constructor Details

This class inherits a constructor from Superbolt::Connection::Base

Instance Method Details

#close(&block) ⇒ Object



8
9
10
11
12
# File 'lib/superbolt/connection/app.rb', line 8

def close(&block)
  connection.close(&block)
  @connection = nil
  @q = nil
end

#connectionObject



4
5
6
# File 'lib/superbolt/connection/app.rb', line 4

def connection
  @connection ||= Adapter::AMQP.new(config)
end