Sha256: db3410f5eb79f35ab426c08a93cd15bf870254e23b69ea095048d91a7f1345a0
Contents?: true
Size: 883 Bytes
Versions: 1
Compression:
Stored size: 883 Bytes
Contents
# frozen_string_literal: true module Spyse module Client class IP < Base # # Lists ips # # @see https://spyse.com/api#/ip/ip # # @return [Hash] # def get(ip, limit: nil, offset: nil, as_org: nil, country: nil, as_num: nil) params = { limit: limit, offset: offset, ip: ip, as_org: as_org, country: country, as_num: as_num }.compact _get("/ip", params) { |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.1.0 | lib/spyse/clients/ip.rb |