I have some data returned from an api which I've parsed down to this:
[{:a=>value1, :b=>value2, :c=>value3, :d=>value4}, {:a=>value5, :b=>value6, :c=>value7, :d=>value8},{:a=>value9, :b=>value10, :c=>value11, :d=>value12}, ...]
How can I create a new array of hashes with the keys AND values of b and c, given key = b and key = c? I want to pass the key and return the value and maintain the key. So I want to end up with:
[{:b=>value2, :c=>value3}, {:b=>value6, :c=>value7}, {:b=>value10, :c=>value11}, ...]