Class: BBK::AMQP::Publisher::PublishedMessage

Inherits:
Object
  • Object
show all
Defined in:
lib/bbk/amqp/publisher.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(headers, payload) ⇒ PublishedMessage

Returns a new instance of PublishedMessage.



18
19
20
21
# File 'lib/bbk/amqp/publisher.rb', line 18

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

Instance Attribute Details

#headersObject (readonly)

Returns the value of attribute headers.



16
17
18
# File 'lib/bbk/amqp/publisher.rb', line 16

def headers
  @headers
end

#payloadObject (readonly)

Returns the value of attribute payload.



16
17
18
# File 'lib/bbk/amqp/publisher.rb', line 16

def payload
  @payload
end