Class: DorIndexing::Indexers::CompositeIndexer
- Inherits:
-
Object
- Object
- DorIndexing::Indexers::CompositeIndexer
- 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
-
#indexers ⇒ Object
readonly
Returns the value of attribute indexers.
Instance Method Summary collapse
-
#initialize(*indexers) ⇒ CompositeIndexer
constructor
A new instance of CompositeIndexer.
- #new ⇒ Object
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
#indexers ⇒ Object (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
#new ⇒ Object
14 15 16 |
# File 'lib/dor_indexing/indexers/composite_indexer.rb', line 14 def new(**) Instance.new(indexers, **) end |