Gem for hash to objects