Change attr_accessor to reader