Ruby: Working with Arrays of Hashes

Posted by in Ruby

Last Thursday 21st July we had Lightning talks at our Barcelona on Rails meetup, this was basically a meeting where some of us could just share anything that we thought it was interesting in the Ruby/Ruby  on Rails world.

When I started developing with Ruby, one thing that I found quite interesting was the methods it has to work with a very particular way of structuring data: the arrays of hashes. This is quite handy when getting data (or delivering it) through an API or in any case you may want to handle these arrays of hashes in any way.

Here I leave you the slides I used for these talks, I think they’re quite self-explanatory.

Link to the slides: https://sergibyte.github.io/Ruby—Arrays-of-hashes/#/
Link to the repository where you can find the scripts used: https://github.com/sergibyte/Ruby—Arrays-of-hashes