Class: Promiscuous::AMQP::Null

Inherits:
Object
  • Object
show all
Defined in:
lib/promiscuous/amqp/null.rb

Instance Method Summary collapse

Instance Method Details

#connectObject



2
3
# File 'lib/promiscuous/amqp/null.rb', line 2

def connect
end

#connected?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/promiscuous/amqp/null.rb', line 8

def connected?
  true
end

#disconnectObject



5
6
# File 'lib/promiscuous/amqp/null.rb', line 5

def disconnect
end

#publish(options = {}) ⇒ Object



12
13
14
# File 'lib/promiscuous/amqp/null.rb', line 12

def publish(options={})
  options[:on_confirm].try(:call)
end