class MasterLeague::Player

Public Instance Methods

region() click to toggle source
# File lib/master_league/player.rb, line 19
def region
  @region ||= RegionRepository.new.find(region_id) if region_id
end
role() click to toggle source
# File lib/master_league/player.rb, line 23
def role
  Hero::ROLES[role_id]
end
team() click to toggle source
# File lib/master_league/player.rb, line 15
def team
  @team ||= TeamRepository.new.find(team_id) if team_id
end