title: How to cleanly initialize attributes in Ruby with new?
body: <pre><code>class Foo
    attr_accessor :name, :age, :email, :gender, :height
  
    def initalize params
      @name = params[:name]
      @age = params[:age]
      @email = params[:email]
      .
      .
      .
    end
  </code></pre>
  
  <p>This seems like a silly way of doing it. What is a better/more idiomatic way of initalizing objects in Ruby?</p>
  
  <p>Ruby 1.9.3</p>