Class: StompMq::Message

Inherits:
Object
  • Object
show all
Defined in:
lib/stompmq/message.rb

Overview

Holds a STOMP message.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(header, content) ⇒ Message

Returns a new instance of Message.



6
7
8
9
# File 'lib/stompmq/message.rb', line 6

def initialize(header, content)
  @header = header
  @content = content
end

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content.



4
5
6
# File 'lib/stompmq/message.rb', line 4

def content
  @content
end

#headerObject (readonly)

Returns the value of attribute header.



4
5
6
# File 'lib/stompmq/message.rb', line 4

def header
  @header
end