Class: VirusTotal::File

Inherits:
Base
  • Object
show all
Defined in:
lib/virus_total/file.rb

Constant Summary

Constants inherited from Base

Base::BASE_URL

Instance Attribute Summary

Attributes inherited from Base

#apikey, #resource

Instance Method Summary collapse

Methods inherited from Base

#api_response, #initialize

Constructor Details

This class inherits a constructor from VirusTotal::Base

Instance Method Details

#reportObject



11
12
13
# File 'lib/virus_total/file.rb', line 11

def report
  api_response('file/report', resource: resource)
end

#rescanObject



7
8
9
# File 'lib/virus_total/file.rb', line 7

def rescan
  api_response('file/rescan', resource: resource)
end

#scanObject



3
4
5
# File 'lib/virus_total/file.rb', line 3

def scan
  api_response('file/scan', file: get_file, multipart: true)
end