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