Data::Object::ClassHas provides options for defining class attributes.