Sha256: 9a6102486a8118ae986756d263aafd1c1bf32c626e928be4bc7b2cec83375a4c

Contents?: true

Size: 418 Bytes

Versions: 5

Compression:

Stored size: 418 Bytes

Contents

module MessageDriver
  module Message
    class Base
      attr_reader :body, :headers, :properties

      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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
message-driver-0.2.2 lib/message_driver/message.rb
message-driver-0.2.1 lib/message_driver/message.rb
message-driver-0.2.0 lib/message_driver/message.rb
message-driver-0.2.0.rc2 lib/message_driver/message.rb
message-driver-0.2.0.rc1 lib/message_driver/message.rb