Convert resources array to a Hash