Sha256: 79d78d395953e3b8194141677e46488a28b1a7f5e53b400c5064f1b0934691bf
Contents?: true
Size: 441 Bytes
Versions: 1
Compression:
Stored size: 441 Bytes
Contents
# frozen_string_literal: true module AMQP Message = Struct.new(:channel, :delivery_tag, :exchange_name, :routing_key, :properties, :body, :redelivered, :consumer_tag) do def ack channel.basic_ack(delivery_tag) end def reject(requeue: false) channel.basic_reject(delivery_tag, requeue: requeue) end end ReturnMessage = Struct.new(:reply_code, :reply_text, :exchange, :routing_key, :properties, :body) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
amqp-client-1.0.0 | lib/amqp/client/message.rb |