Class: Ratonvirus::AntivirusCheckService::Result

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#parsed_responseObject

Returns the value of attribute parsed_response.



4
5
6
# File 'lib/ratonvirus/services/antivirus_check_service.rb', line 4

def parsed_response
  @parsed_response
end

Instance Method Details

#virus?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/ratonvirus/services/antivirus_check_service.rb', line 6

def virus?
  parsed_response.any? && parsed_response['status'] != 'OK'
end