Costa Ricas Bryan Ruiz har søndag indstillet sin professionelle fodboldkarriere i hjemlandet efter 19 år som professionel.