Sha256: ed27050ed6d81921ba15d37708fea8b6e58e388d30b1248f7d2c6b95036c561b
Contents?: true
Size: 732 Bytes
Versions: 1
Compression:
Stored size: 732 Bytes
Contents
# frozen_string_literal: true module Spyse module Client class IP < Base # # Returns the current data about the given IP address. # # @see https://spyse.com/api#/ip/ip # # @param [String] ip A valid IPv4 address. # # @return [Hash] # def get(ip) _get("/ip/#{ip}") { |json| json } end # # Lists IPs # # @see https://spyse.com/api#/ip/ip_search # # @return [Hash] # 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 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spysex-0.2.0 | lib/spyse/clients/ip.rb |