Class: Onyphe::Clients::Ctl
- Inherits:
-
Onyphe::Client
- Object
- Onyphe::Client
- Onyphe::Clients::Ctl
- Defined in:
- lib/onyphe/clients/ctl.rb
Constant Summary
Constants inherited from Onyphe::Client
Onyphe::Client::HOST, Onyphe::Client::URL
Instance Method Summary collapse
Methods inherited from Onyphe::Client
Constructor Details
This class inherits a constructor from Onyphe::Client
Instance Method Details
#get_by_domain(domain, page = 1) ⇒ Object
6 7 8 9 10 |
# File 'lib/onyphe/clients/ctl.rb', line 6 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 |