Class: AMQP::Frame::Header

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) ⇒ Header

Returns a new instance of Header.



48
49
50
51
52
53
# File 'lib/amqp/frame.rb', line 48

def initialize payload = nil, channel = 0
  super
  unless @payload.is_a? Protocol::Header or @payload.nil?
    @payload = Protocol::Header.new(@payload)
  end
end