Sha256: 332fed3feaa328fef2d44136cec659101a2f6af8e35b79d3b2b1b4901dcb4006

Contents?: true

Size: 339 Bytes

Versions: 1

Compression:

Stored size: 339 Bytes

Contents

# frozen_string_literal: true

module Onyphe
  module Clients
    class Resolver < Client
      def forward(ip, page: 1)
        get("/simple/resolver/forward/#{ip}", page: page) { |json| json }
      end

      def reverse(ip, page: 1)
        get("/simple/resolver/reverse/#{ip}", page: page) { |json| json }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
onyphe-2.0.0 lib/onyphe/clients/resolver.rb