Module: EasyElo::Helper
- Included in:
- Configuration, Game, Player, Rating
- Defined in:
- lib/easy_elo/helper.rb
Instance Method Summary collapse
Instance Method Details
#initialize(attributes = {}) ⇒ Object
3 4 5 6 7 |
# File 'lib/easy_elo/helper.rb', line 3 def initialize(attributes = {}) attributes.each do |key, value| instance_variable_set("@#{key}", value) end end |