lib/onyphe/clients/ctl.rb in onyphe-0.1.0 vs lib/onyphe/clients/ctl.rb in onyphe-0.2.0

- old
+ new

@@ -2,9 +2,11 @@ module Onyphe module Clients class Ctl < Client 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 end end