Class: Kagi::API::Endpoints::Search
- Inherits:
-
Object
- Object
- Kagi::API::Endpoints::Search
- Includes:
- Pipeable
- Defined in:
- lib/kagi/api/endpoints/search.rb
Overview
Handles search requests.
Instance Method Summary collapse
Instance Method Details
#call(**params) ⇒ Object
24 25 26 27 28 29 30 31 32 |
# File 'lib/kagi/api/endpoints/search.rb', line 24 def call(**params) result = requester.get("search", **params) case result in Success then success result in Failure(response) then failure response else Failure "Unable to parse HTTP response." end end |