Class: Hydra::AccessControls::EmbargoIndexer
- Inherits:
-
Object
- Object
- Hydra::AccessControls::EmbargoIndexer
- Defined in:
- app/indexers/hydra/access_controls/embargo_indexer.rb
Instance Method Summary collapse
- #generate_solr_document ⇒ Object
-
#initialize(object) ⇒ EmbargoIndexer
constructor
A new instance of EmbargoIndexer.
Constructor Details
#initialize(object) ⇒ EmbargoIndexer
Returns a new instance of EmbargoIndexer.
3 4 5 |
# File 'app/indexers/hydra/access_controls/embargo_indexer.rb', line 3 def initialize(object) @object = object end |
Instance Method Details
#generate_solr_document ⇒ Object
7 8 9 |
# File 'app/indexers/hydra/access_controls/embargo_indexer.rb', line 7 def generate_solr_document @object.to_hash end |