Class: Qrack::Transport::Header
- Defined in:
- lib/ext/bunny-0.6.0/lib/qrack/transport/frame08.rb
Constant Summary collapse
- ID =
2
Constants inherited from Frame
Instance Attribute Summary
Attributes inherited from Frame
Instance Method Summary collapse
-
#initialize(payload = nil, channel = 0) ⇒ Header
constructor
A new instance of Header.
Methods inherited from Frame
#==, #id, parse, #to_binary, #to_s
Constructor Details
#initialize(payload = nil, channel = 0) ⇒ Header
Returns a new instance of Header.
79 80 81 82 83 84 |
# File 'lib/ext/bunny-0.6.0/lib/qrack/transport/frame08.rb', line 79 def initialize payload = nil, channel = 0 super unless @payload.is_a? Protocol::Header or @payload.nil? @payload = Protocol::Header.new(@payload) end end |