Make sure attrs is cast to a Hash.
Merge pull request #6 from onehub/init-fix-2-1

Fix initialize in Ruby 2.1