Sha256: c4fc34c5b742ac402ca67eb33831ea7a8d71b2baf8e81415a8fd3676eec21c93

Contents?: true

Size: 313 Bytes

Versions: 8

Compression:

Stored size: 313 Bytes

Contents

module Qsagi
  class Message
    attr_reader :payload

    def initialize(delivery_details, payload)
      @delivery_details = delivery_details
      @payload = payload
    end

    def delivery_tag
      @delivery_details.delivery_tag
    end

    def exchange
      @delivery_details.exchange
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
qsagi-0.2.3 lib/qsagi/message.rb
qsagi-0.2.2 lib/qsagi/message.rb
qsagi-0.2.1 lib/qsagi/message.rb
qsagi-0.2.0 lib/qsagi/message.rb
qsagi-0.1.3 lib/qsagi/message.rb
qsagi-0.1.2 lib/qsagi/message.rb
qsagi-0.1.1 lib/qsagi/message.rb
qsagi-0.1.0 lib/qsagi/message.rb