Class: BinaryEdge::Client::Domains
- Includes:
- Action::IP, Action::Search
- Defined in:
- lib/binaryedge/clients/domains.rb
Constant Summary
Constants inherited from Base
Base::BASE_URL, Base::HOST, Base::VERSION
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#dns(target, page: 1) ⇒ Hash
Return list of known DNS results for the target domain.
-
#subdomain(target, page: 1) ⇒ Hash
Return list of subdomains known from the target domains.
Methods included from Action::Search
Methods included from Action::IP
Methods inherited from Base
Constructor Details
This class inherits a constructor from BinaryEdge::Client::Base
Instance Method Details
#dns(target, page: 1) ⇒ Hash
Return list of known DNS results for the target domain.
30 31 32 33 |
# File 'lib/binaryedge/clients/domains.rb', line 30 def dns(target, page: 1) params = { page: page } _get("/query/domains/dns/#{target}", params) { |json| json } end |
#subdomain(target, page: 1) ⇒ Hash
Return list of subdomains known from the target domains
17 18 19 20 |
# File 'lib/binaryedge/clients/domains.rb', line 17 def subdomain(target, page: 1) params = { page: page } _get("/query/domains/subdomain/#{target}", params) { |json| json } end |