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
50 51 52 |
# File 'lib/esearch/document.rb', line 50 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
15 16 17 |
# File 'lib/esearch/document.rb', line 15 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
29 30 31 |
# File 'lib/esearch/document.rb', line 29 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
39 40 41 |
# File 'lib/esearch/document.rb', line 39 def path type.path.join(id) end |