Jose Ramirez bounced back from his defeat to Josh Taylor with an entertaining points victory over Jose Pedraza in Fresno.