Class: StompMessage::JmsMessage
- Inherits:
-
Object
- Object
- StompMessage::JmsMessage
- Defined in:
- lib/stomp_message/stomp_server.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#command ⇒ Object
Returns the value of attribute command.
-
#headers ⇒ Object
Returns the value of attribute headers.
Instance Method Summary collapse
-
#initialize(body, headers) ⇒ JmsMessage
constructor
A new instance of JmsMessage.
Constructor Details
#initialize(body, headers) ⇒ JmsMessage
Returns a new instance of JmsMessage.
10 11 12 13 |
# File 'lib/stomp_message/stomp_server.rb', line 10 def initialize(body, headers) self.body=body self.headers=headers end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
9 10 11 |
# File 'lib/stomp_message/stomp_server.rb', line 9 def body @body end |
#command ⇒ Object
Returns the value of attribute command.
9 10 11 |
# File 'lib/stomp_message/stomp_server.rb', line 9 def command @command end |
#headers ⇒ Object
Returns the value of attribute headers.
9 10 11 |
# File 'lib/stomp_message/stomp_server.rb', line 9 def headers @headers end |