class SBF::Client::Person

Public Instance Methods

league_status_title() click to toggle source
# File lib/stbaldricks/entities/person.rb, line 362
def league_status_title
  case league_status
  when SBF::Client::LeagueStatus::SQUIRE
    'Squire of Hope'
  when SBF::Client::LeagueStatus::KNIGHT
    'Knight of the Bald Table'
  when SBF::Client::LeagueStatus::KNIGHT_COMMANDER
    'Knight Commander'
  when SBF::Client::LeagueStatus::CRUSADER
    'Crusader for a Cure'
  when SBF::Client::LeagueStatus::BARON
    'Baron of the Brave'
  when SBF::Client::LeagueStatus::NOT_APPLICABLE
    ''
  end
end