Class: ICIMS::SearchRequest
- Inherits:
-
Object
- Object
- ICIMS::SearchRequest
- Includes:
- Requestable
- Defined in:
- lib/icims/search_request.rb
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(endpoint, filters) ⇒ SearchRequest
constructor
A new instance of SearchRequest.
Constructor Details
#initialize(endpoint, filters) ⇒ SearchRequest
Returns a new instance of SearchRequest.
6 7 8 9 |
# File 'lib/icims/search_request.rb', line 6 def initialize endpoint, filters @body = filters.to_json @url = customer_url + "/search/#{endpoint}" end |
Class Method Details
.perform(endpoint, filters) ⇒ Object
22 23 24 |
# File 'lib/icims/search_request.rb', line 22 def perform(endpoint, filters) new(endpoint, filters).call end |