Stop in for a cup of coffee

Had a box of spare parts anyone know what this is for . Is it a voltage regulator ?

139810318_401992097536584_5841432934482850455_n.jpg