Class: EventMachine::AblyHttpRequest::Middleware::JSONResponse
- Inherits:
-
Object
- Object
- EventMachine::AblyHttpRequest::Middleware::JSONResponse
- Defined in:
- lib/em-http/middleware/json_response.rb
Instance Method Summary collapse
Instance Method Details
#response(resp) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/em-http/middleware/json_response.rb', line 7 def response(resp) begin body = MultiJson.load(resp.response) resp.response = body rescue => e end end |