The Ruijsenaars Function Transform