As Instructables userWilliamH11points out, it couldnt be simpler.

Yes, but simple can be pretty effective.

Fasten Magnets with Heat Shrink Tubing| Instructables