ITP2 - OOP Tutorials - attr_accessor

You'll notice that writing those getter and setter methods took up a lot
of room in our program for such a simple feature. And if we had other
states we wanted to track, like height or weight, the class would be
even longer. Because these methods are so commonplace, Ruby has a
built-in way to automatically create these getter and setter methods for
us, using the attr_accessor method.