Module: Olympic::Tournament::ClassMethods

Defined in:
lib/olympic/tournament.rb

Instance Method Summary collapse

Instance Method Details

#create_tournament(teams:, bracket:) ⇒ Object



23
24
25
26
27
# File 'lib/olympic/tournament.rb', line 23

def create_tournament(teams:, bracket:)
  tournament = new
  Olympic::Bracket.for(bracket, tournament, teams).call
  tournament
end