I have an array of hashes with arrays that look something like this:
result = [
{\"id_t\"=>[\"1\"], \"transcript_t\"=>[\"I am a transcript ONE\"]},
I think the key to the solution is Hash[], which will create a Hash based on an array of key/values, i.e.
Hash[[["key1", "value1"], ["key2", "value2"]]]
#=> {"key1" => "value1", "key2" => "value2"}
Just add a set of map, and you have a solution!
result = [
{"id_t"=>["1"], "transcript_t"=>["I am a transcript ONE"]},
{"id_t"=>["2"], "transcript_t"=>["I am a transcript TWO"]},
{"id_t"=>["3"], "transcript_t"=>["I am a transcript THREE"]}
]
Hash[result.map(&:values).map(&:flatten)]