Module: PayoutSystem

Defined in:
lib/payout_system.rb,
lib/payout_system/base.rb,
lib/payout_system/logging.rb,
lib/payout_system/podium_split.rb,
lib/payout_system/winner_takes_all.rb,
lib/payout_system/minimum_to_fraction.rb

Defined Under Namespace

Classes: Base, MinimumToFraction, PodiumSplit, WinnerTakesAll

Class Method Summary collapse

Class Method Details

.calculate(pot, entries, award_style, order = :points, options = {}) ⇒ Object



9
10
11
# File 'lib/payout_system.rb', line 9

def self.calculate(pot, entries, award_style, order = :points, options = {})
  PayoutSystem.const_get(award_style.to_s.classify).new(pot, entries, order, options).run
end