Sha256: bcbc3e246af5cf18926234999fa35d75674aff5267a9c13764e1a455770adddf

Contents?: true

Size: 388 Bytes

Versions: 7

Compression:

Stored size: 388 Bytes

Contents

# frozen_string_literal: true

module SecurityTrails
  module Clients
    class IPs < Client
      def explore(ipaddress)
        get("/ips/nearby/#{ipaddress}") { |json| json }
      end

      def search(query)
        post("/ips/list", query: query) { |json| json }
      end

      def stats(query)
        post("/ips/stats", query: query) { |json| json }
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
securitytrails-0.2.0 lib/securitytrails/clients/ips.rb
securitytrails-0.1.5 lib/securitytrails/clients/ips.rb
securitytrails-0.1.4 lib/securitytrails/clients/ips.rb
securitytrails-0.1.3 lib/securitytrails/clients/ips.rb
securitytrails-0.1.2 lib/securitytrails/clients/ips.rb
securitytrails-0.1.1 lib/securitytrails/clients/ips.rb
securitytrails-0.1.0 lib/securitytrails/clients/ips.rb