class Ddr::Antivirus::ScannerAdapter
@abstract Subclass and override {#scan} to implement a scanner adapter.
Public Instance Methods
scan(path)
click to toggle source
Scan a file path for viruses.
@param path [String] file path to scan. @return [Ddr::Antivirus::ScanResult] the result of the scan.
# File lib/ddr/antivirus/scanner_adapter.rb, line 13 def scan(path) raise NotImplementedError, "Adapters must implement the `scan' method." end
Private Instance Methods
logger()
click to toggle source
# File lib/ddr/antivirus/scanner_adapter.rb, line 19 def logger Ddr::Antivirus.logger end