Method: AMQP::Header#ack

Defined in:
lib/amqp/header.rb

#ack(multiple = false) ⇒ Object

Acknowledges the receipt of this message with the server.

Parameters:

  • multiple (Boolean) (defaults to: false)

    Whether or not to acknowledge multiple messages



34
35
36
# File 'lib/amqp/header.rb', line 34

def ack(multiple = false)
  @channel.acknowledge(@method.delivery_tag, multiple)
end