Class: EloBrain::DevelopmentCoefficient::Situations::Amateur
- Inherits:
-
Object
- Object
- EloBrain::DevelopmentCoefficient::Situations::Amateur
- Defined in:
- lib/elo_brain/development_coefficient/situations/amateur.rb
Constant Summary collapse
- COEFFICIENT =
20
- ELO_MAX =
2_400
Instance Method Summary collapse
- #eligible? ⇒ Boolean
-
#initialize(elo:) ⇒ Amateur
constructor
A new instance of Amateur.
Constructor Details
#initialize(elo:) ⇒ Amateur
Returns a new instance of Amateur.
9 10 11 |
# File 'lib/elo_brain/development_coefficient/situations/amateur.rb', line 9 def initialize(elo:) @elo = elo end |
Instance Method Details
#eligible? ⇒ Boolean
13 14 15 |
# File 'lib/elo_brain/development_coefficient/situations/amateur.rb', line 13 def eligible? @elo < ELO_MAX end |