Class: Hydra::AccessControls::EmbargoIndexer

Inherits:
Object
  • Object
show all
Defined in:
app/indexers/hydra/access_controls/embargo_indexer.rb

Instance Method Summary collapse

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_documentObject



7
8
9
# File 'app/indexers/hydra/access_controls/embargo_indexer.rb', line 7

def generate_solr_document
  @object.to_hash
end