Sha256: 43ab97ab4315e84f7d2dfdcf1aff0084b669588f4fec28dcb54f2bcbf2400ea9
Contents?: true
Size: 615 Bytes
Versions: 4
Compression:
Stored size: 615 Bytes
Contents
require_relative "scan_result" module Ddr::Antivirus # # @abstract Subclass and override {#scan} to implement a scanner adapter. # class ScannerAdapter # Scan a file path for viruses. # # @param path [String] file path to scan. # @return [Ddr::Antivirus::Adapters::ScanResult] the result of the scan. def scan(path) raise NotImplementedError, "Adapters must implement the `scan' method." end # Return the adapter configuration options def config Ddr::Antivirus.adapter_config end private def logger Ddr::Antivirus.logger end end end
Version data entries
4 entries across 4 versions & 1 rubygems