As per the [naming reference](https://github.com/phinze/homebrew-cask/blob/master/doc/CASK_NAMING_REFERENCE.md), the file should be named `beacon-scanner.rb` with *class* `BeaconScanner`.