Method: Elasticsearch::API::Response#method_missing

Defined in:
lib/elasticsearch/api/response.rb

#method_missing(method, *args, &block) ⇒ Object

[View source]

30
31
32
33
34
35
36
# File 'lib/elasticsearch/api/response.rb', line 30

def method_missing(method, *args, &block)
  if RESPONSE_METHODS.include? method
    @response.send method.to_sym
  else
    @response.body.send(method.to_sym, *args, &block)
  end
end