Class: Esearch::Presenter::Document

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

Overview

Base class result of document command presenters

Direct Known Subclasses

Get, Operation

Defined Under Namespace

Classes: Get, Operation

Instance Method Summary collapse

Instance Method Details

#_idString

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 id

Returns:

  • (String)


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

expose_primitive(:_id, :id)

#_indexString

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 index name

Returns:

  • (String)


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

expose_primitive(:_index, :index)

#_typeString

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 type name

Returns:

  • (String)


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

expose_primitive(:_type, :type)

#_versionFixnum

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 version

Returns:

  • (Fixnum)


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

expose_primitive(:_version, :version)