Class: Onyphe::Clients::Search

Inherits:
Onyphe::Client show all
Defined in:
lib/onyphe/clients/search.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

#initialize

Constructor Details

This class inherits a constructor from Onyphe::Client

Instance Method Details

#search(oql, page: 1) ⇒ Object



8
9
10
11
# File 'lib/onyphe/clients/search.rb', line 8

def search(oql, page: 1)
  path = Addressable::URI.encode(oql)
  get("/search/#{path}", page: page) { |json| json }
end