Class: Esearch::Presenter::Document::Get

Inherits:
Esearch::Presenter::Document show all
Defined in:
lib/esearch/presenter/document.rb

Overview

Presenter for document get result

Instance Method Summary collapse

Methods inherited from Esearch::Presenter::Document

#_id, #_index, #_type, #_version

Instance Method Details

#_sourceHash

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return source document

Returns:

  • (Hash)


88
# File 'lib/esearch/presenter/document.rb', line 88

expose_primitive(:_source, :source)

#fieldsHash

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return requested fields

Returns:

  • (Hash)


96
# File 'lib/esearch/presenter/document.rb', line 96

expose_primitive(:fields)