Class: Onyphe::Clients::Resolver
- Inherits:
-
Onyphe::Client
- Object
- Onyphe::Client
- Onyphe::Clients::Resolver
- Defined in:
- lib/onyphe/clients/resolver.rb
Constant Summary
Constants inherited from Onyphe::Client
Onyphe::Client::HOST, Onyphe::Client::URL, Onyphe::Client::VERSION
Instance Method Summary collapse
Methods inherited from Onyphe::Client
Constructor Details
This class inherits a constructor from Onyphe::Client
Instance Method Details
#forward(ip, page: 1) ⇒ Object
6 7 8 |
# File 'lib/onyphe/clients/resolver.rb', line 6 def forward(ip, page: 1) get("/simple/resolver/forward/#{ip}", page: page) { |json| json } end |
#reverse(ip, page: 1) ⇒ Object
10 11 12 |
# File 'lib/onyphe/clients/resolver.rb', line 10 def reverse(ip, page: 1) get("/simple/resolver/reverse/#{ip}", page: page) { |json| json } end |