Class: Ddr::Antivirus::NullScannerAdapter

Inherits:
ScannerAdapter show all
Defined in:
lib/ddr/antivirus/adapters/null_scanner_adapter.rb

Overview

A no-op adapter, primarily for testing and development.

Instance Method Summary collapse

Methods inherited from ScannerAdapter

#config

Instance Method Details

#scan(path) ⇒ Object



7
8
9
# File 'lib/ddr/antivirus/adapters/null_scanner_adapter.rb', line 7

def scan(path)
  ScanResult.new(path, "#{path}: NOT SCANNED - using :null scanner adapter.")
end