Method: Esse::Document#doc_header

Defined in:
lib/esse/document.rb

#doc_headerObject



93
94
95
96
97
98
# File 'lib/esse/document.rb', line 93

def doc_header
  { _id: id }.tap do |h|
    h[:_type] = type if type
    h[:routing] = routing if routing?
  end
end