lib/onyphe/clients/inetnum.rb in onyphe-0.2.3 vs lib/onyphe/clients/inetnum.rb in onyphe-1.0.0

- old
+ new

@@ -1,10 +1,10 @@ # frozen_string_literal: true module Onyphe module Clients class Inetnum < Client - def get_by_ip(ip, page = 1) + 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