A new instance of Method.
Returns a new instance of Method.
39 40 41 42 43 44
# File 'lib/amqp/frame.rb', line 39 def initialize payload = nil, channel = 0 super unless @payload.is_a? Protocol::Class::Method or @payload.nil? @payload = Protocol.parse(@payload) end end