Class: TicketEvolution::Searches
- Defined in:
- lib/ticket_evolution/searches.rb
Constant Summary
Constants included from Endpoint::RequestHandler
Endpoint::RequestHandler::CODES
Instance Method Summary collapse
Methods inherited from Endpoint
#base_path, #connection, #endpoint_name, #has_connection?, #id, #initialize, #method_missing
Methods included from SingularClass
Methods included from Endpoint::RequestHandler
#build_request, #collection_handler, #naturalize_response, #raw_handler, #request, #upload_history_handler
Methods inherited from Base
Constructor Details
This class inherits a constructor from TicketEvolution::Endpoint
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class TicketEvolution::Endpoint
Instance Method Details
#build_for_search(response) ⇒ Object
7 8 9 |
# File 'lib/ticket_evolution/searches.rb', line 7 def build_for_search(response) response.body['suggestions'] end |
#suggestions(params = {}) ⇒ Object
3 4 5 |
# File 'lib/ticket_evolution/searches.rb', line 3 def suggestions(params = {}) request(:GET, '/suggestions', params, &method(:build_for_search)) end |