1 2 3 4 5 6 7
class Contact attr_accessor :name, :age, :created_at, :awesome, :preferences def initialize(options = {}) options.each { |name, value| send("#{name}=", value) } end end