The 30-year-old PSG player will miss the Nations League match against the Czech Republic on Saturday evening in Oviedo.
The RFEF did not say whether he might return for the final match of the international break against Croatia on Tuesday in Split.
Ruiz started both games as world champions Spain started their campaign with wins over England and Croatia.