But it was not a book , but a little mechanical toy , which lay in a box -- an artificial nightingale which was like the real one , only that it was set all over with diamonds , rubies , and sapphires .