Class: SearchFlip::HTTPClient Private

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/search_flip/http_client.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

The SearchFlip::HTTPClient class wraps the http gem, is for internal use and responsible for the http request/response handling, ie communicating with Elasticsearch.

API:

  • private

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeHTTPClient

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of HTTPClient.

API:

  • private



12
13
14
# File 'lib/search_flip/http_client.rb', line 12

def initialize
  self.request = HTTP
end

Instance Attribute Details

#requestObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

API:

  • private



10
11
12
# File 'lib/search_flip/http_client.rb', line 10

def request
  @request
end