I'm trying to return the lowest result number that it's name is my.name:
{
"total_results"=>"73",
"results"=>
{
"28"=> {"description"=>"description_here", "name"=> "my.name"},
"25"=> {"description"=>"description_here", "name"=> "other1.name"},
"24"=> {"description"=>"description_here", "name"=> "my.name"},
"21"=> {"description"=>"description_here", "name"=> "other2.name"}
}
}
So in the example above it will return 24. I'm fairly new to Ruby so I'm struggling to find a good way to do this.