class VirustotalAPI::IP

A class for '/ip_addresses' API

Public Class Methods

find(ip, api_key) click to toggle source

Find an IP.

@param [String] ip address The IP to find. @param [String] api_key The key for virustotal @return [VirustotalAPI::IPReport] Report

# File lib/virustotal_api/ip.rb, line 13
def self.find(ip, api_key)
  report = perform("/ip_addresses/#{ip}", api_key)
  new(report)
end