Parent

Class Index [+]

Quicksearch

AMQ::Protocol::Connection::Close

Attributes

reply_code[R]
reply_text[R]
class_id[R]
method_id[R]

Public Class Methods

decode(data) click to toggle source

@return

     # File lib/amq/protocol/client.rb, line 512
512:         def self.decode(data)
513:           offset = 0
514:           reply_code = data[offset, 2].unpack(PACK_UINT16).first
515:           offset += 2
516:           length = data[offset, 1].unpack(PACK_CHAR).first
517:           offset += 1
518:           reply_text = data[offset, length]
519:           offset += length
520:           class_id = data[offset, 2].unpack(PACK_UINT16).first
521:           offset += 2
522:           method_id = data[offset, 2].unpack(PACK_UINT16).first
523:           offset += 2
524:           self.new(reply_code, reply_text, class_id, method_id)
525:         end
encode(reply_code, reply_text, class_id, method_id) click to toggle source

@return

     # File lib/amq/protocol/client.rb, line 541
541:         def self.encode(reply_code, reply_text, class_id, method_id)
542:           channel = 0
543:           buffer = ""
544:           buffer << @packed_indexes
545:           buffer << [reply_code].pack(PACK_UINT16)
546:           buffer << reply_text.bytesize.chr
547:           buffer << reply_text
548:           buffer << [class_id].pack(PACK_UINT16)
549:           buffer << [method_id].pack(PACK_UINT16)
550:           MethodFrame.new(buffer, channel)
551:         end
has_content?() click to toggle source
     # File lib/amq/protocol/client.rb, line 535
535:         def self.has_content?
536:           false
537:         end
new(reply_code, reply_text, class_id, method_id) click to toggle source
     # File lib/amq/protocol/client.rb, line 528
528:         def initialize(reply_code, reply_text, class_id, method_id)
529:           @reply_code = reply_code
530:           @reply_text = reply_text
531:           @class_id = class_id
532:           @method_id = method_id
533:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.