Get the attributes from the proper object.