Sha256: db8b9f7ab76d8b8d62771aa51c22c88b11779822386a32d17ec149642fab3630

Contents?: true

Size: 409 Bytes

Versions: 6

Compression:

Stored size: 409 Bytes

Contents

class Freddy
  class Delivery
    attr_reader :routing_key, :payload, :tag

    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

    def type
      @metadata.type
    end

    def reply_to
      @metadata.reply_to
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
freddy-1.0.1 lib/freddy/delivery.rb
freddy-jruby-1.0.0 lib/freddy/delivery.rb
freddy-1.0.0 lib/freddy/delivery.rb
freddy-jruby-0.7.2 lib/freddy/delivery.rb
freddy-0.7.2 lib/freddy/delivery.rb
freddy-0.7.1 lib/freddy/delivery.rb