Let’s say I have an array with multiple hashes
[#<Campaign id: 144> , #<Campaign id: 146>]
I’ve stripped out the other fields for simplicities sake, but the object does have many fields. What I want to end up with is an array of unique hash IDs, for example: [144, 146]. Of course there are many ways to do this naively, but I want to know what the best way to do it is. I’m struggling to find a function that was built for this purpose.
or