BartlomiejSkwira
7/26/2013 - 11:47 AM

initialize all arguments

initialize all arguments

def initialize(attrs = {})
  attrs.each do |k, v|
    send("#{k}=", v)
  end
end