Class: Elasticsearch::Transport::Transport::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/elasticsearch/extensions/ansi/response.rb

Instance Method Summary collapse

Instance Method Details

#body_to_ansiObject Also known as: body

Wrap the response body in the Extensions::ANSI::ResponseBody class



70
71
72
# File 'lib/elasticsearch/extensions/ansi/response.rb', line 70

def body_to_ansi
  Extensions::ANSI::ResponseBody.new @body
end