lib/message_driver/message.rb in message-driver-0.1.0 vs lib/message_driver/message.rb in message-driver-0.2.0.rc1
- old
+ new
@@ -6,8 +6,16 @@
def initialize(body, headers, properties)
@body = body
@headers = headers
@properties = properties
end
+
+ def ack(options={})
+ Client.ack_message(self, options)
+ end
+
+ def nack(options={})
+ Client.nack_message(self, options)
+ end
end
end
end