Class: RiotLolApi::Model::Match
- Inherits:
-
Object
- Object
- RiotLolApi::Model::Match
- Includes:
- Concern::Init
- Defined in:
- lib/riot_lol_api/models/matches.rb
Instance Method Summary collapse
Methods included from Concern::Init
Instance Method Details
#which_team_win ⇒ Object
6 7 8 |
# 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 |