Class: StompMq::Message
- Inherits:
-
Object
- Object
- StompMq::Message
- Defined in:
- lib/stompmq/message.rb
Overview
Holds a STOMP message.
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#header ⇒ Object
readonly
Returns the value of attribute header.
Instance Method Summary collapse
-
#initialize(header, content) ⇒ Message
constructor
A new instance of Message.
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
#content ⇒ Object (readonly)
Returns the value of attribute content.
4 5 6 |
# File 'lib/stompmq/message.rb', line 4 def content @content end |
#header ⇒ Object (readonly)
Returns the value of attribute header.
4 5 6 |
# File 'lib/stompmq/message.rb', line 4 def header @header end |