Class: Onyphe::Clients::Datascan
- Inherits:
-
Onyphe::Client
- Object
- Onyphe::Client
- Onyphe::Clients::Datascan
- Defined in:
- lib/onyphe/clients/datascan.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_query(query, page = 1) ⇒ Object
8 9 10 11 |
# File 'lib/onyphe/clients/datascan.rb', line 8 def get_by_query(query, page = 1) query = Addressable::URI.encode(query) get("/datascan/#{query}", page: page) { |json| json } end |