class GreyNoise::Clients::Noise
Public Instance Methods
context(ip)
click to toggle source
Get more information about a given IP address.
@param [String] ip an IP address
@return [Hash]
# File lib/greynoise/clients/noise.rb, line 13 def context(ip) _get("/noise/context/#{ip}") { |json| json } end
multi_quick(*ips)
click to toggle source
Check whether a set of IP addresses are “Internet background noise”, or have been observed scanning or attacking devices across the Internet.
@param [Array<String>] *ips a set of IP address
@return [Array]
# File lib/greynoise/clients/noise.rb, line 35 def multi_quick(*ips) params = { ips: ips.join(",") } _get("/noise/multi/quick", params) { |json| json } end
quick(ip)
click to toggle source
Check whether a given IP address is “Internet background noise”, or has been observed scanning or attacking devices across the Internet.
@param [String] ip an IP address
@return [Hash]
# File lib/greynoise/clients/noise.rb, line 24 def quick(ip) _get("/noise/quick/#{ip}") { |json| json } end