class TournamentSystem::DriverProxy
Proxies a driver, allowing overriding of certain functions.
Used by tournament systems that build on top of others, with special behaviour. By default the behaviour is identical to the proxied driver.
Public Class Methods
new(target)
click to toggle source
@param target [Driver] the driver to proxy
# File lib/tournament_system/driver_proxy.rb, line 10 def initialize(target) @target = target end
Public Instance Methods
build_match(home_team, away_team)
click to toggle source
# File lib/tournament_system/driver_proxy.rb, line 42 def build_match(home_team, away_team) @target.build_match(home_team, away_team) end
get_match_teams(match)
click to toggle source
# File lib/tournament_system/driver_proxy.rb, line 30 def get_match_teams(match) @target.get_match_teams(match) end
get_match_winner(match)
click to toggle source
# File lib/tournament_system/driver_proxy.rb, line 26 def get_match_winner(match) @target.get_match_winner(match) end
get_team_matches(team)
click to toggle source
# File lib/tournament_system/driver_proxy.rb, line 38 def get_team_matches(team) @target.get_team_matches(team) end
get_team_score(team)
click to toggle source
# File lib/tournament_system/driver_proxy.rb, line 34 def get_team_score(team) @target.get_team_score(team) end
matches()
click to toggle source
# File lib/tournament_system/driver_proxy.rb, line 14 def matches @target.matches end
ranked_teams()
click to toggle source
# File lib/tournament_system/driver_proxy.rb, line 22 def ranked_teams @target.ranked_teams end
seeded_teams()
click to toggle source
# File lib/tournament_system/driver_proxy.rb, line 18 def seeded_teams @target.seeded_teams end