Я тренируюсь в рубине, и мне нужно выполнить упражнение, но я не знаю, как получить данные. У меня есть это
DB = [
{
title: "My first article",
content: "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Id ratione harum illo, dicta minima rerum quod natus cupiditate voluptatibus rem! Amet reprehenderit voluptatum animi, eligendi quia quos reiciendis veritatis magni.",
photo: "https://google.fr",
rating: "2"
},
{
title: "An second article",
content: "Eventually the guys with real ideas not running a scam on the world will overcome. I used an exclamation just to be an asshole and also to make a point! LOL Young Thug is super inspiring to me. Amazing artist!!! I also wanted to point out that it’s the first album to go number 1 off of streaming!!! ",
photo: "https://google.fr",
rating: "2"
},
{
title: "3 article",
content: "also to Kim’s hair and makeup Lorraine jewelry and the whole style squad at Balmain and the Yeezy team. When companies doubt me they doubt us. Wes daytime",
rating: "4"
},
]
COMMENTS = [
["Hello1"],
["comment2"],
["comment3"],
]
, и мне бы хотелось это
DATAS = [ {
title: "My first article",
content: "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Id ratione harum illo, dicta minima rerum quod natus cupiditate voluptatibus rem! Amet reprehenderit voluptatum animi, eligendi quia quos reiciendis veritatis magni.",
photo: "https://google.fr",
rating: "2"
}, ["Hello1"],
....
]
Если вы можете мне это будет очень полезно, потому что стол для меня это довольно сложно, спасибо