[api] fix ruby syntax