Class: EasyElo::Configuration
- Inherits:
-
Object
- Object
- EasyElo::Configuration
- Includes:
- Helper
- Defined in:
- lib/easy_elo/configure.rb
Instance Attribute Summary collapse
-
#k_factor ⇒ Object
Returns the value of attribute k_factor.
-
#mean ⇒ Object
Returns the value of attribute mean.
-
#sd ⇒ Object
Returns the value of attribute sd.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
6 7 8 9 10 |
# File 'lib/easy_elo/configure.rb', line 6 def initialize @mean = 1000 @sd = 200 @k_factor = 32 end |
Instance Attribute Details
#k_factor ⇒ Object
Returns the value of attribute k_factor.
4 5 6 |
# File 'lib/easy_elo/configure.rb', line 4 def k_factor @k_factor end |
#mean ⇒ Object
Returns the value of attribute mean.
4 5 6 |
# File 'lib/easy_elo/configure.rb', line 4 def mean @mean end |
#sd ⇒ Object
Returns the value of attribute sd.
4 5 6 |
# File 'lib/easy_elo/configure.rb', line 4 def sd @sd end |