Class: AMQP::Frame::Method

Inherits:
Frame
  • Object
show all
Defined in:
lib/amqp/spec.rb,
lib/amqp/frame.rb

Instance Method Summary collapse

Constructor Details

#initialize(payload = nil, channel = 0) ⇒ 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