class SecurityTrails::Clients::IPs

Public Instance Methods

explore(ipaddress) click to toggle source

Returns the neighbors in any given IP level range and essentially allows you to explore closeby IP addresses.

@see docs.securitytrails.com/reference#explore-ips

@param [String] ipaddress Starting IP address (optionally with CIDR subnet mask)

@return [Hash]

# File lib/securitytrails/clients/ips.rb, line 15
def explore(ipaddress)
  get("/ips/nearby/#{ipaddress}") { |json| json }
end
stats(query) click to toggle source

IP Search statistics

@see docs.securitytrails.com/reference#ip-search-statistics

@param [String] query

@return [Hash]

# File lib/securitytrails/clients/ips.rb, line 41
def stats(query)
  post("/ips/stats", query: query) { |json| json }
end