Class: VirusScanner::File
- Inherits:
-
Object
- Object
- VirusScanner::File
- Defined in:
- lib/virus_scanner/file.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
Class Method Summary collapse
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
3 4 5 |
# File 'lib/virus_scanner/file.rb', line 3 def body @body end |
Class Method Details
.check_status(uuid) ⇒ Object
11 12 13 14 15 |
# File 'lib/virus_scanner/file.rb', line 11 def self.check_status(uuid) body = handler.get(uuid) body end |
.handler ⇒ Object
17 18 19 |
# File 'lib/virus_scanner/file.rb', line 17 def self.handler VirusScanner::HTTP.new end |
.scan_url(url) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/virus_scanner/file.rb', line 4 def self.scan_url(url) # Pass URL to file to check to the HTTP requests handler body = handler.post(url) body end |