Class: VirusTotal::Client::IPAddress

Inherits:
Base
  • Object
show all
Defined in:
lib/virustotal/clients/ip_address.rb

Constant Summary

Constants inherited from Base

Base::BASE_URL, Base::HOST, Base::VERSION

Instance Attribute Summary

Attributes inherited from Base

#key

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from VirusTotal::Client::Base

Instance Method Details

#report(ip) ⇒ Object



6
7
8
9
10
# File 'lib/virustotal/clients/ip_address.rb', line 6

def report(ip)
  get("/ip-address/report", ip: ip) do |json|
    handle_response_code json
  end
end