05 Rancher 350 4×4 part identification

Under the seat next to the battery is a silver cylindrical shaped part with a single wire on the top of it. If I was to guess I would say it was a capacitor of some sort. Anyways the rats chewed it up pretty good and I can’t seem to locate this part anywhere on the Internet. Any help would be much appreciated. Thanks in advanced. By the way the atv still seems to run ok without it.