Method: Elasticsearch::Model::Response::Base#initialize

Defined in:
lib/elasticsearch/model/response/base.rb

#initialize(klass, response, options = {}) ⇒ Object

Parameters:

  • klass (Class)

    The name of the model class

  • response (Hash)

    The full response returned from Elasticsearch client

  • options (Hash) (defaults to: {})

    Optional parameters


30
31
32
33
34
# File 'lib/elasticsearch/model/response/base.rb', line 30

def initialize(klass, response, options={})
  @klass     = klass
  @raw_response = response
  @response = response
end