added ruby api doc