Class: Ratonvirus::AntivirusCheckService
- Inherits:
-
Object
- Object
- Ratonvirus::AntivirusCheckService
- Defined in:
- lib/ratonvirus/services/antivirus_check_service.rb
Defined Under Namespace
Classes: Result
Instance Attribute Summary collapse
-
#file_path ⇒ Object
Returns the value of attribute file_path.
-
#result ⇒ Object
Returns the value of attribute result.
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(path) ⇒ AntivirusCheckService
constructor
A new instance of AntivirusCheckService.
Constructor Details
#initialize(path) ⇒ AntivirusCheckService
Returns a new instance of AntivirusCheckService.
13 14 15 16 17 18 |
# File 'lib/ratonvirus/services/antivirus_check_service.rb', line 13 def initialize(path) @file_path = path @logger = Logger.new(STDOUT) @result = Result.new end |
Instance Attribute Details
#file_path ⇒ Object
Returns the value of attribute file_path.
11 12 13 |
# File 'lib/ratonvirus/services/antivirus_check_service.rb', line 11 def file_path @file_path end |
#result ⇒ Object
Returns the value of attribute result.
11 12 13 |
# File 'lib/ratonvirus/services/antivirus_check_service.rb', line 11 def result @result end |
Class Method Details
.installed? ⇒ Boolean
20 21 22 |
# File 'lib/ratonvirus/services/antivirus_check_service.rb', line 20 def self.installed? true end |
Instance Method Details
#call ⇒ Object
24 25 26 27 |
# File 'lib/ratonvirus/services/antivirus_check_service.rb', line 24 def call perform_request @result end |