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

Inherits:
Frame
  • Object
show all
Defined in:
lib/carrot/amqp/spec.rb,
lib/carrot/amqp/frame.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/carrot/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