Sha256: e20b69e9099ed4052125f7bad7e1e66676f66d0588f28c62e660aeb23cad876c

Contents?: true

Size: 318 Bytes

Versions: 1

Compression:

Stored size: 318 Bytes

Contents

module Qsagi
  class Message
    attr_reader :payload

    def initialize(message, payload)
      @delivery_details = message[:delivery_details]
      @payload = payload
    end

    def delivery_tag
      @delivery_details[:delivery_tag]
    end

    def exchange
      @delivery_details[:exchange]
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
qsagi-0.0.1 lib/qsagi/message.rb