Rubies never disappear on their own. Most likely, you purchased items or used rubies to skip a quest or a timer. It is also possible that your purchase got declined already after the rubies were added to your game.

If you suspect the latter (if you've lost a significant amount of rubies and you've recently made a payment in the game), please contact our support team.