DisWarden/lib/virus_scanner.rb
2024-02-11 10:45:39 -07:00

14 lines
350 B
Ruby

# frozen_string_literal: true
require 'httparty'
require_relative 'api_clients/virus_total_client'
# Main class for sending files/links to the security vendors, and getting the response.
class VirusScanner
def self.scan_file(url)
response = VirusTotalClient.scan_url(url)
# TODO: Implement proper return
response['is_safe']
end
end