Class: Qrack::Transport09::Method

Inherits:
Frame
  • Object
show all
Defined in:
lib/qrack/transport/frame09.rb

Constant Summary collapse

ID =
1

Constants inherited from Frame

Frame::FOOTER

Instance Attribute Summary

Attributes inherited from Frame

#channel, #payload

Instance Method Summary collapse

Methods inherited from Frame

#==, #id, parse, #to_binary, #to_s

Constructor Details

#initialize(payload = nil, channel = 0) ⇒ Method

Returns a new instance of Method.



68
69
70
71
72
73
# File 'lib/qrack/transport/frame09.rb', line 68

def initialize payload = nil, channel = 0
  super
  unless @payload.is_a? Protocol09::Class::Method or @payload.nil?
    @payload = Protocol09.parse(@payload)
  end
end