Class: AMQP::Hermes::Message

Inherits:
Object
  • Object
show all
Defined in:
lib/amqp-hermes/message.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(headers, payload) ⇒ Message

Returns a new instance of Message.



6
7
8
9
# File 'lib/amqp-hermes/message.rb', line 6

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

Instance Attribute Details

#headersObject (readonly)

Returns the value of attribute headers.



4
5
6
# File 'lib/amqp-hermes/message.rb', line 4

def headers
  @headers
end

#payloadObject (readonly)

Returns the value of attribute payload.



4
5
6
# File 'lib/amqp-hermes/message.rb', line 4

def payload
  @payload
end