Class: Lapin::Server

Inherits:
Sinatra::Base
  • Object
show all
Defined in:
lib/lapin/server.rb

Instance Method Summary collapse

Instance Method Details

#exchangeObject

Create an exchange from the current AMQP connection.



44
45
46
# File 'lib/lapin/server.rb', line 44

def exchange
  @exchange ||= Lapin.client.fanout(Config.exchange)
end