The 15-year-old victim was rushed to the Royal Infirmary of Edinburgh after the attack.