To determine if the damage to your car's wiring was caused by rats, inspect for any droppings or evidence of chewing on the wiring.
You can also look for signs of nesting materials such as shredded paper or fabric in the engine area. If you have any suspicions, it is best to take your car to a mechanic for further inspection.