Use to_hash instead of _attributes_
Merge pull request #4 from RiotGames/fix_as_json

Fix json generation