It looks like a flasher relay to me. Probably the bi-metalic strip type. It only needs two connections. The green wire is a ground and does not need to be connected to this type.
I've never used it, but, I suppose and electronic type might need a ground. It should be a three terminal type then.
Cheers,