Class: StompMq::Frame
- Inherits:
-
Object
- Object
- StompMq::Frame
- Defined in:
- lib/stompmq/frame.rb
Overview
Holds a STOMP frame of any type.
Instance Attribute Summary collapse
-
#cmd ⇒ Object
readonly
Returns the value of attribute cmd.
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#header ⇒ Object
readonly
Returns the value of attribute header.
Instance Method Summary collapse
-
#initialize(cmd, header, content) ⇒ Frame
constructor
A new instance of Frame.
Constructor Details
#initialize(cmd, header, content) ⇒ Frame
Returns a new instance of Frame.
6 7 8 9 10 |
# File 'lib/stompmq/frame.rb', line 6 def initialize(cmd, header, content) @cmd = cmd @header = header @content = content end |
Instance Attribute Details
#cmd ⇒ Object (readonly)
Returns the value of attribute cmd.
4 5 6 |
# File 'lib/stompmq/frame.rb', line 4 def cmd @cmd end |
#content ⇒ Object (readonly)
Returns the value of attribute content.
4 5 6 |
# File 'lib/stompmq/frame.rb', line 4 def content @content end |
#header ⇒ Object (readonly)
Returns the value of attribute header.
4 5 6 |
# File 'lib/stompmq/frame.rb', line 4 def header @header end |