https://www.learningcontainer.com/convert-object-to-hash-ruby/
Convert object to hash ruby