Method: Elasticsearch::Model::Response::Result#initialize

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

#initialize(attributes = {}) ⇒ Result

Returns a new instance of Result.

Parameters:

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

    A Hash with document properties

[View source]

33
34
35
# File 'lib/elasticsearch/model/response/result.rb', line 33

def initialize(attributes={})
  @result = HashWrapper.new(attributes)
end