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

- old
+ new

@@ -1,10 +1,10 @@ # frozen_string_literal: true module Onyphe module Clients class Ctl < Client - def get_by_domain(domain, page = 1) + def get_by_domain(domain, page: 1) raise ArgumentError, "Invalid domain: #{domain}" unless Validator.valid_domain?(domain) get("/ctl/#{domain}", page: page) { |json| json } end end