Class: EloBrain::DevelopmentCoefficient::SituationCoefficient
- Inherits:
-
Object
- Object
- EloBrain::DevelopmentCoefficient::SituationCoefficient
- Defined in:
- lib/elo_brain/development_coefficient/situation_coefficient.rb
Instance Method Summary collapse
Instance Method Details
#call(nb_matches:, elo:) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/elo_brain/development_coefficient/situation_coefficient.rb', line 6 def call(nb_matches:, elo:) klass = EligibleSituation.new( Situations::Default.new, Situations::Starting.new(nb_matches: nb_matches), Situations::Amateur.new(elo: elo), Situations::Pro.new(elo: elo) ).situation.class coefficient(klass) end |