Then why wasn’t Ruby hit to keep him from talking?
Because Ruby understood his obligations as a member of the mob. He wasn't an unstable nut like Oswald.