Class: ClamChowder::Backend::Clamd
- Inherits:
-
Object
- Object
- ClamChowder::Backend::Clamd
- Defined in:
- lib/clam_chowder/backend/clamd.rb
Instance Method Summary collapse
-
#initialize ⇒ Clamd
constructor
A new instance of Clamd.
- #scan_file(path) ⇒ Object
Constructor Details
#initialize ⇒ Clamd
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 |