A lot depends on the way the magnet is magnetised.
For example, it might have one face with one polarity and the other face the other polarity, or the inside could be a different polarity to the outside, or there may be alternating poles in either of the above. These options are not exclusive...