Class: DorIndexing::Indexers::CompositeIndexer

Inherits:
Object
  • Object
show all
Defined in:
lib/dor_indexing/indexers/composite_indexer.rb

Overview

Allows DorIndexing::Builders::DocumentBuilder class (which builds the solr doc for an object) to be much more readable Borrowed from github.com/samvera/valkyrie/blob/master/lib/valkyrie/persistence/solr/composite_indexer.rb

Defined Under Namespace

Classes: Instance

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*indexers) ⇒ CompositeIndexer

Returns a new instance of CompositeIndexer.



10
11
12
# File 'lib/dor_indexing/indexers/composite_indexer.rb', line 10

def initialize(*indexers)
  @indexers = indexers
end

Instance Attribute Details

#indexersObject (readonly)

Returns the value of attribute indexers.



8
9
10
# File 'lib/dor_indexing/indexers/composite_indexer.rb', line 8

def indexers
  @indexers
end

Instance Method Details

#newObject



14
15
16
# File 'lib/dor_indexing/indexers/composite_indexer.rb', line 14

def new(**)
  Instance.new(indexers, **)
end