class Esearch::Document

Handler for document

Public Instance Methods

connection() click to toggle source

Return connection

@return [Connection]

@api private

# File lib/esearch/document.rb, line 50
def connection
  type.connection
end
delete() click to toggle source

Delete document

@return [Presenter::Command::Document::Delete]

@api private

# File lib/esearch/document.rb, line 15
def delete
  Command::Document::Delete.run(self)
end
get() click to toggle source

Return document

@return [Presenter::Command::Document::Get]

if foundd

@return [nil]

otherwise

@api private

# File lib/esearch/document.rb, line 29
def get
  Command::Document::Get.run(self)
end
path() click to toggle source

Return path

@return [Pathname]

@api private

# File lib/esearch/document.rb, line 39
def path
  type.path.join(id)
end