Sha256: 69874e644e4eafa5c16c407c483385f49d91f54edc692ad95e8beb4d608eb62c

Contents?: true

Size: 297 Bytes

Versions: 2

Compression:

Stored size: 297 Bytes

Contents

# frozen_string_literal: true

module Onyphe
  module Clients
    class Sniffer < Client
      def get_by_ip(ip, page: 1)
        raise ArgumentError, "Invalid IP address: #{ip}" unless Validator.valid_ip?(ip)

        get("/sniffer/#{ip}", page: page) { |json| json }
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
onyphe-1.1.0 lib/onyphe/clients/sniffer.rb
onyphe-1.0.0 lib/onyphe/clients/sniffer.rb