module Estella::Helpers
Public Class Methods
types()
click to toggle source
track dependent classes for spec support
# File lib/estella/helpers.rb, line 19 def self.types @@types end
Public Instance Methods
es_delete()
click to toggle source
# File lib/estella/helpers.rb, line 30 def es_delete self.class.es_delete_document(id) end
es_index()
click to toggle source
# File lib/estella/helpers.rb, line 23 def es_index self.es_indexing = true __elasticsearch__.index_document ensure self.es_indexing = nil end
es_transform()
click to toggle source
# File lib/estella/helpers.rb, line 34 def es_transform { index: { _id: id.to_s, data: as_indexed_json } } end