Construct an attribute object.