Class: Carrot::AMQP::Frame::Header

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Header.



44
45
46
47
48
49
# File 'lib/amqp/frame.rb', line 44

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