Class: Esse::NullDocument
- Defined in:
- lib/esse/null_document.rb
Instance Attribute Summary
Attributes inherited from Document
Instance Method Summary collapse
-
#id ⇒ NilClass
The document ID.
-
#initialize ⇒ NullDocument
constructor
A new instance of NullDocument.
-
#meta ⇒ NilClass
The document meta.
-
#routing ⇒ NilClass
The document routing.
-
#source ⇒ NilClass
The document source.
-
#type ⇒ NilClass
The document type.
Methods inherited from Document
#==, #doc_header, #ignore_on_delete?, #ignore_on_index?, #inspect, #mutate, #routing?, #to_bulk, #to_h, #type?
Constructor Details
#initialize ⇒ NullDocument
Returns a new instance of NullDocument.
5 6 7 8 |
# File 'lib/esse/null_document.rb', line 5 def initialize @object = nil @options = {} end |
Instance Method Details
#id ⇒ NilClass
Returns the document ID.
11 12 13 |
# File 'lib/esse/null_document.rb', line 11 def id nil end |
#meta ⇒ NilClass
Returns the document meta.
26 27 28 |
# File 'lib/esse/null_document.rb', line 26 def {} end |
#routing ⇒ NilClass
Returns the document routing.
21 22 23 |
# File 'lib/esse/null_document.rb', line 21 def routing nil end |
#source ⇒ NilClass
Returns the document source.
31 32 33 |
# File 'lib/esse/null_document.rb', line 31 def source nil end |
#type ⇒ NilClass
Returns the document type.
16 17 18 |
# File 'lib/esse/null_document.rb', line 16 def type nil end |