This little method updates an object based on his attr names