Bryan Ruiz scored against his boyhood club as Fulham continued their pre-season tour of Costa Rica with a 3-1 victory over Liga Deportiva Alajuelense.