Sha256: 77da7b8ac26696e7a30fd72259b48e851e1adf8efa3e350c0369de9cfed72f48
Contents?: true
Size: 298 Bytes
Versions: 4
Compression:
Stored size: 298 Bytes
Contents
# frozen_string_literal: true module Onyphe module Clients class Synscan < Client def get_by_ip(ip, page = 1) raise ArgumentError, "Invalid IP address: #{ip}" unless Validator.valid_ip?(ip) get("/synscan/#{ip}", page: page) { |json| json } end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
onyphe-0.2.3 | lib/onyphe/clients/synscan.rb |
onyphe-0.2.2 | lib/onyphe/clients/synscan.rb |
onyphe-0.2.1 | lib/onyphe/clients/synscan.rb |
onyphe-0.2.0 | lib/onyphe/clients/synscan.rb |