Sha256: 7a2fe5657140dd471048c918d345c9caabb3492cc39b5d9b92cc63415316d8d6
Contents?: true
Size: 309 Bytes
Versions: 2
Compression:
Stored size: 309 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
onyphe-1.1.0 | lib/onyphe/clients/ctl.rb |
onyphe-1.0.0 | lib/onyphe/clients/ctl.rb |