Module: Elasticsearch::API::CommonClient
- Defined in:
- lib/elasticsearch/api.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
- #initialize(client) ⇒ Object
- #perform_request(method, path, params = {}, body = nil, headers = nil, request_opts = {}) ⇒ Object
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
40 41 42 |
# File 'lib/elasticsearch/api.rb', line 40 def client @client end |
Instance Method Details
#initialize(client) ⇒ Object
42 43 44 |
# File 'lib/elasticsearch/api.rb', line 42 def initialize(client) @client = client end |
#perform_request(method, path, params = {}, body = nil, headers = nil, request_opts = {}) ⇒ Object
46 47 48 |
# File 'lib/elasticsearch/api.rb', line 46 def perform_request(method, path, params = {}, body = nil, headers = nil, request_opts = {}) client.perform_request(method, path, params, body, headers, request_opts) end |