Class: Esse::DocumentForPartialUpdate

Inherits:
Document
  • Object
show all
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

Attributes inherited from Document

#object, #options

Instance Method Summary collapse

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

#sourceObject (readonly)

Returns the value of attribute source.



9
10
11
# File 'lib/esse/document_for_partial_update.rb', line 9

def source
  @source
end