getRankByName

Retrieves the Rank object matching the specified rank name.

Return

The Rank object matching the specified rank name, or the first rank in the list if no match is found.

Parameters

rank

The name of the rank to retrieve.