Class: Esearch::Presenter::Document::Operation

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

Overview

Base class for document operations

Direct Known Subclasses

Delete, Index, Update

Defined Under Namespace

Classes: Delete, Index, Update

Instance Method Summary collapse

Methods inherited from Esearch::Presenter::Document

#_id, #_index, #_type, #_version

Instance Method Details

#oktrue, false

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.

Test for successful operation

Returns:

  • (true)

    if successful

  • (false)

    otherwise



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

expose_primitive(:ok, :ok?)