api_generated: fix ruby init