Module: ElasticRecord::Model

Extended by:
ActiveSupport::Concern
Defined in:
lib/elastic_record/model.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#arelasticObject



48
49
50
# File 'lib/elastic_record/model.rb', line 48

def arelastic
  self.class.arelastic
end

#elastic_indexObject



52
53
54
# File 'lib/elastic_record/model.rb', line 52

def elastic_index
  self.class.elastic_index
end

#index_to_elasticsearchObject



44
45
46
# File 'lib/elastic_record/model.rb', line 44

def index_to_elasticsearch
  elastic_index.index_record(self)
end