Sha256: bf030c3e9fb787b1447b4693e0523358e5d9ccac73eeda86be1dd435e4328b53
Contents?: true
Size: 303 Bytes
Versions: 2
Compression:
Stored size: 303 Bytes
Contents
# frozen_string_literal: true module Onyphe module Clients class Threatlist < Client def get_by_ip(ip, page: 1) raise ArgumentError, "Invalid IP address: #{ip}" unless Validator.valid_ip?(ip) get("/threatlist/#{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/threatlist.rb |
onyphe-1.0.0 | lib/onyphe/clients/threatlist.rb |