Class: Elastictastic::Middleware::Base

Inherits:
Object
  • Object
show all
Includes:
TransportMethods
Defined in:
lib/elastictastic/middleware.rb

Instance Method Summary collapse

Methods included from TransportMethods

#delete, #get, #head, #post, #put

Constructor Details

#initialize(connection) ⇒ Base

Returns a new instance of Base.



11
12
13
# File 'lib/elastictastic/middleware.rb', line 11

def initialize(connection)
  @connection = connection
end

Instance Method Details

#request(method, path, body = nil) ⇒ Object



15
16
17
# File 'lib/elastictastic/middleware.rb', line 15

def request(method, path, body = nil)
  @connection.request(method, path, body)
end