Proposed Canon
The Ray Gun is a Magic Item made with Dollamancy out of the Royal scepter of Jetstone. Ace Hardware created it with a trigger word, "Pew", meant to be said when using the item. It's very similar to prince Ossomer's Bracer Blaster.
It uses Shockamancy to shoot rays that injure targets as a ranged attack.
As a magical attack, its shots can be absorbed by the Staff of Suckage. Though the staff got destroyed in the process.
 Real World References
Rayguns are a common staple of science fiction.