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