I have an hash which has data something like :
details = [{
:project_name=>"ABC", :project_id=>12345, :total_count=>1,
:stories=>[#<TrackerApi::Resources::Story id=987654>]
}, {
:project_name=>"XYZ", :project_id=>54321, :total_count=>1,
:stories=>[#<TrackerApi::Resources::Story id=123456>]
}]
I want to insert another array with data such as :
sorter_Version = [["Abc ", "30 August 2017"], ["Not Accepted", "30 August 2017"]]
in details hash , but somehow not able to do it. can someone please help me out .Thanks in advance.
Output should be like :
details = [{
:project_name=>"ABC", :project_id=>12345, :total_count=>1,
:stories=>[#<TrackerApi::Resources::Story id=987654>],
:sorter_version=>["Abc ","30 August 2017"]
}, {
:project_name=>"XYZ", :project_id=>54321, :total_count=>1,
:stories=>[#<TrackerApi::Resources::Story id=123456>],
:sorter_version=>["Not Accepted ","30 August 2017"]
}]