class Elastictastic::Middleware::JsonDecodeResponse
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 39 def request(method, path, body = nil) response = super if response.body.present? Adapter::Response.new( response.status, response.headers, Elastictastic.json_decode(response.body) ) else response end end