class RiotLolApi::Model::Match

Public Instance Methods

which_team_win() click to toggle source
# File lib/riot_lol_api/models/matches.rb, line 6
def which_team_win
  teams.first.win? ? teams.first.team_id : teams.last.team_id
end