Module: Elo::Model

Defined in:
lib/elo/model.rb

Instance Method Summary collapse

Instance Method Details

#initialize(attributes = {}) ⇒ Object

Poor man’s activemodel



4
5
6
7
8
# File 'lib/elo/model.rb', line 4

def initialize(attributes = {})
  attributes.each do |key, value|
    public_send("#{key}=", value)
  end
end