Alternative flashcard solution

I recently inherited a codebase with lots of this style of hash building and when running it through Rubocop, it was suggested to instead use each_with_object. I hadn’t heard of each_with_object before so I looked it up and found this nice article Better Hash Injection using each_with_object - CustomInk Technology Blog

Needless to say, I followed Rubocop’s advice and did the refactoring!