lib/freddy/delivery.rb in freddy-jruby-0.6.0 vs lib/freddy/delivery.rb in freddy-jruby-0.7.2
- old
+ new
@@ -1,12 +1,13 @@
class Freddy
class Delivery
- attr_reader :routing_key, :payload
+ attr_reader :routing_key, :payload, :tag
- def initialize(payload, metadata, routing_key)
+ def initialize(payload, metadata, routing_key, tag)
@payload = payload
@metadata = metadata
@routing_key = routing_key
+ @tag = tag
end
def correlation_id
@metadata.correlation_id
end