If an element has several classes, you can still select it using any of these classes. Therefore, your selector is correct, you do not need to change anything.
$(".status").attr("rel");
If you think that a class can change, and it can have any or these classes ( online, offline, away ) along with status, try this.
$(".status.online, status.offline, .status.away").attr("rel");
source share