Class: ClamChowder::Backend::Clamd

Inherits:
Object
  • Object
show all
Defined in:
lib/clam_chowder/backend/clamd.rb

Instance Method Summary collapse

Constructor Details

#initializeClamd

Returns a new instance of Clamd.



9
10
11
# File 'lib/clam_chowder/backend/clamd.rb', line 9

def initialize
  @clamd = ::Clamd::Client.new
end

Instance Method Details

#scan_file(path) ⇒ Object



13
14
15
# File 'lib/clam_chowder/backend/clamd.rb', line 13

def scan_file(path)
  parse_response(@clamd.scan(path))
end