Class: Ratonvirus::AntivirusCheckService

Inherits:
Object
  • Object
show all
Defined in:
lib/ratonvirus/services/antivirus_check_service.rb

Defined Under Namespace

Classes: Result

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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_pathObject

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

#resultObject

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

Returns:

  • (Boolean)


20
21
22
# File 'lib/ratonvirus/services/antivirus_check_service.rb', line 20

def self.installed?
  true
end

Instance Method Details

#callObject



24
25
26
27
# File 'lib/ratonvirus/services/antivirus_check_service.rb', line 24

def call
  perform_request
  @result
end