Class: Esse::DocumentForPartialUpdate
- Extended by:
- Forwardable
- Defined in:
- lib/esse/document_for_partial_update.rb
Constant Summary
Constants inherited from Document
Esse::Document::MUTATIONS_FALLBACK
Instance Attribute Summary collapse
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Attributes inherited from Document
Instance Method Summary collapse
-
#initialize(lazy_header, source:) ⇒ DocumentForPartialUpdate
constructor
A new instance of DocumentForPartialUpdate.
Methods inherited from Document
#doc_header, #document_for_partial_update, #eql?, #id, #ignore_on_delete?, #ignore_on_index?, #inspect, #meta, #mutate, #mutated_source, #mutations, #routing, #routing?, #to_bulk, #to_h, #type, #type?
Constructor Details
#initialize(lazy_header, source:) ⇒ DocumentForPartialUpdate
Returns a new instance of DocumentForPartialUpdate.
11 12 13 14 |
# File 'lib/esse/document_for_partial_update.rb', line 11 def initialize(lazy_header, source:) @source = source super(lazy_header) end |
Instance Attribute Details
#source ⇒ Object (readonly)
Returns the value of attribute source.
9 10 11 |
# File 'lib/esse/document_for_partial_update.rb', line 9 def source @source end |