Class: EasyElo::Configuration

Inherits:
Object
  • Object
show all
Includes:
Helper
Defined in:
lib/easy_elo/configure.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_factorObject

Returns the value of attribute k_factor.



4
5
6
# File 'lib/easy_elo/configure.rb', line 4

def k_factor
  @k_factor
end

#meanObject

Returns the value of attribute mean.



4
5
6
# File 'lib/easy_elo/configure.rb', line 4

def mean
  @mean
end

#sdObject

Returns the value of attribute sd.



4
5
6
# File 'lib/easy_elo/configure.rb', line 4

def sd
  @sd
end