Class: Esearch::Document
- Inherits:
-
Object
- Object
- Esearch::Document
- Includes:
- Adamantium::Flat, Mixin::Document, Mixin::Exist
- Defined in:
- lib/esearch/document.rb
Overview
Handler for document
Instance Method Summary collapse
-
#connection ⇒ Connection
private
Return connection.
-
#delete ⇒ Presenter::Command::Document::Delete
private
Delete document.
-
#get ⇒ Presenter::Command::Document::Get?
private
Return document.
-
#path ⇒ Pathname
private
Return path.
Methods included from Mixin::Exist
Methods included from Mixin::Document
#index, #index_create, #index_update
Instance Method Details
#connection ⇒ Connection
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 connection
48 49 50 |
# File 'lib/esearch/document.rb', line 48 def connection type.connection end |
#delete ⇒ Presenter::Command::Document::Delete
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.
Delete document
13 14 15 |
# File 'lib/esearch/document.rb', line 13 def delete Command::Document::Delete.run(self) end |
#get ⇒ Presenter::Command::Document::Get?
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 document
27 28 29 |
# File 'lib/esearch/document.rb', line 27 def get Command::Document::Get.run(self) end |
#path ⇒ Pathname
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 path
37 38 39 |
# File 'lib/esearch/document.rb', line 37 def path type.path.join(id) end |