It was a good contract extension. We need to applaud good FO behavior. They signed him early and meant when he went bust, it wasn't a team crippling mistake. However, if he busted out a top 10 offensive season, we'd have had a bargain.
Keibert Ruiz isn't the reason the Nationals have struggled. And as JCA said, if this team was winning in next few season, his salary isn't keeping Nats from reducing his role.