removing .to_h for ruby 2.0 support
Merge pull request #29 from gumatias/update_attributes

Update attributes