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