class Spyse::Client::IP
Public Instance Methods
get(ip)
click to toggle source
Returns the current data about the given IP
address.
@see spyse.com/api#/ip/ip
@param [String] ip A valid IPv4 address.
@return [Hash]
# File lib/spyse/clients/ip.rb, line 15 def get(ip) _get("/ip/#{ip}") { |json| json } end
search(search_params, limit: nil, offset: nil)
click to toggle source
Lists IPs
@see spyse.com/api#/ip/ip_search
@return [Hash]
# File lib/spyse/clients/ip.rb, line 26 def search(search_params, limit: nil, offset: nil) params = { search_params: search_params, limit: limit, offset: offset, }.compact _post("/ip/search", params) { |json| json } end