Add assign_defined_attributes method
Assign attributes return attributes hash after assignment