Class: SearchFlip::HTTPClient
- Inherits:
-
Object
- Object
- SearchFlip::HTTPClient
- Extended by:
- Forwardable
- Defined in:
- lib/search_flip/http_client.rb
Overview
The SearchFlip::HTTPClient class wraps the http gem and responsible for the http request/response handling, ie communicating with Elasticsearch. You only need to use it directly if you need authentication to communicate with Elasticsearch or if you want to set some custom http settings.
Instance Attribute Summary collapse
-
#plugins ⇒ Object
Returns the value of attribute plugins.
-
#request ⇒ Object
Returns the value of attribute request.
Instance Method Summary collapse
-
#initialize(plugins: []) ⇒ HTTPClient
constructor
A new instance of HTTPClient.
Constructor Details
#initialize(plugins: []) ⇒ HTTPClient
Returns a new instance of HTTPClient.
30 31 32 33 |
# File 'lib/search_flip/http_client.rb', line 30 def initialize(plugins: []) self.request = HTTP self.plugins = plugins end |
Instance Attribute Details
#plugins ⇒ Object
Returns the value of attribute plugins.
28 29 30 |
# File 'lib/search_flip/http_client.rb', line 28 def plugins @plugins end |
#request ⇒ Object
Returns the value of attribute request.
28 29 30 |
# File 'lib/search_flip/http_client.rb', line 28 def request @request end |