Complex ruby array of hashes combine
问题 I'm looking to change my array of hashes, to combine all hashes with same keys and different values into same hash, here is what I mean: [ [0] { "Property 1" => { "Portal" => #<Client:0x70aa253d> { :team_id => 1, :cap_id => 25, :user_id => 145, :active => true, :created_at => Wed, 18 Mar 2015 11:52:11 EDT -04:00, :updated_at => Wed, 18 Mar 2015 11:52:11 EDT -04:00 } } }, [1] { "Property 2" => { "Client Solutions" => #<Client:0x70aa221c> { :team_id => 2, :cap_id => 25, :user_id => 145, :active