Ruby создать объект с атрибутами

class MyObject
  attr_accessor :attribute1, :attribute2, :attribute3
end

test_object = MyObject.new
test_object.attribute1 = "Holy cow!"
I got 99 problems but a bug aint one!