add assign_attributes method
Merge pull request #11 from Thinkei/ft/add-assign-attribute-method

add assign_attributes method