Class: Dor::CompositeIndexer

Inherits:
Object
  • Object
show all
Defined in:
lib/dor/indexers/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.



6
7
8
# File 'lib/dor/indexers/composite_indexer.rb', line 6

def initialize(*indexers)
  @indexers = indexers
end

Instance Attribute Details

#indexersObject (readonly)

Returns the value of attribute indexers.



5
6
7
# File 'lib/dor/indexers/composite_indexer.rb', line 5

def indexers
  @indexers
end

Instance Method Details

#new(resource:) ⇒ Object



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

def new(resource:)
  Instance.new(indexers, resource: resource)
end