# File lib/amq/protocol/client.rb, line 387
        def self.encode(response)
          channel = 0
          buffer = ""
          buffer << @packed_indexes
          buffer << [response.bytesize].pack(PACK_UINT32)
          buffer << response
          MethodFrame.new(buffer, channel)
        end