Class: Hyrax::Actors::DOIActor
- Inherits:
-
AbstractActor
- Object
- AbstractActor
- Hyrax::Actors::DOIActor
- Defined in:
- app/actors/hyrax/actors/doi_actor.rb
Overview
An actor that registers a DOI using the configured registar This actor should come after the model actor which saves the work
Instance Method Summary collapse
Instance Method Details
#create(env) ⇒ Boolean
23 24 25 26 |
# File 'app/actors/hyrax/actors/doi_actor.rb', line 23 def create(env) # Assume the model actor has already run and saved the work create_or_update_doi(env.curation_concern) && next_actor.create(env) end |
#update(env) ⇒ Boolean
32 33 34 |
# File 'app/actors/hyrax/actors/doi_actor.rb', line 32 def update(env) create_or_update_doi(env.curation_concern) && next_actor.update(env) end |