Sha256: 44b8fc5e14d2504ab250533b7f67832b36f6c6e7a6927f5ffe0255c07ccd07f8
Contents?: true
Size: 310 Bytes
Versions: 4
Compression:
Stored size: 310 Bytes
Contents
# frozen_string_literal: true 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
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
onyphe-0.2.3 | lib/onyphe/clients/ctl.rb |
onyphe-0.2.2 | lib/onyphe/clients/ctl.rb |
onyphe-0.2.1 | lib/onyphe/clients/ctl.rb |
onyphe-0.2.0 | lib/onyphe/clients/ctl.rb |