Class: Elastictastic::Middleware::Base
- Inherits:
-
Object
- Object
- Elastictastic::Middleware::Base
- Includes:
- TransportMethods
- Defined in:
- lib/elastictastic/middleware.rb
Direct Known Subclasses
JsonDecodeResponse, JsonEncodeBody, LogRequests, RaiseServerErrors
Instance Method Summary collapse
-
#initialize(connection) ⇒ Base
constructor
A new instance of Base.
- #request(method, path, body = nil) ⇒ Object
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 |