lib/freddy/delivery.rb in freddy-jruby-0.4.3 vs lib/freddy/delivery.rb in freddy-jruby-0.4.9

- old
+ new

@@ -1,14 +1,23 @@ class Freddy class Delivery - attr_reader :metadata, :routing_key + attr_reader :routing_key, :payload - def initialize(metadata, routing_key) + def initialize(payload, metadata, routing_key) + @payload = payload @metadata = metadata @routing_key = routing_key end def correlation_id @metadata.correlation_id + end + + def type + @metadata.type + end + + def reply_to + @metadata.reply_to end end end