Module: Elasticsearch::API::CommonClient

Defined in:
lib/elasticsearch/api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client.



41
42
43
# File 'lib/elasticsearch/api.rb', line 41

def client
  @client
end

Instance Method Details

#initialize(client) ⇒ Object



43
44
45
# File 'lib/elasticsearch/api.rb', line 43

def initialize(client)
  @client = client
end

#perform_request(method, path, params = {}, body = nil, headers = nil, request_opts = {}) ⇒ Object



47
48
49
# File 'lib/elasticsearch/api.rb', line 47

def perform_request(method, path, params = {}, body = nil, headers = nil, request_opts = {})
  client.perform_request(method, path, params, body, headers, request_opts)
end