That's exactly what I'm building - a gas cap. The copper tube goes through the holes top and bottom of the plastic bit, and a brass rod with cork on the bottom goes through it.
The cap won't be immersed in gasoline, but I'm going to do a tolerance check for it because of fumes. The white plastic joiner bit fits into the top of the fuel tank neck:
Let's revisit this picture because I'm mucking things up in text:
Left to right:
Tube for the rod to slip through.
Brass rod.
Caps for the ends, which the tube will be fixed to and centered by means of washers.
Plastic coupler that forms the body of the gas cap. It fits the tank filler tube perfectly!
Cup of coffee because, you know, coffee.
I'll also find a gasket to go around the coupler where it meets the filler tube just to be pedantic. I'm not afraid of the gas cap coming out, as it's seating inside the filler tank by about two and a half inches. The kind of turbulence required to pull a gas cap two inches out of the filler neck of the tank will mean that the gas cap will be the least of my concerns!