Class: StompMq::Frame

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

Overview

Holds a STOMP frame of any type.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#cmdObject (readonly)

Returns the value of attribute cmd.



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

def cmd
  @cmd
end

#contentObject (readonly)

Returns the value of attribute content.



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

def content
  @content
end

#headerObject (readonly)

Returns the value of attribute header.



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

def header
  @header
end