class Elastictastic::Middleware::JsonEncodeBody
Public Instance Methods
request(method, path, body = nil)
click to toggle source
Calls superclass method
Elastictastic::Middleware::Base#request
# File lib/elastictastic/middleware.rb, line 23 def request(method, path, body = nil) case body when String, nil super else @connection.request( method, path, Elastictastic.json_encode(body) ) end end