Class: VirusTotal::Url

Inherits:
Base
  • Object
show all
Defined in:
lib/virus_total/url.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



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

def report
  api_response("url/report", resource: resource)
end

#scanObject



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

def scan
  api_response("url/scan", url: resource("\n"))
end