Class: CurationConcerns::Actors::AbstractActor
- Inherits:
-
Object
- Object
- CurationConcerns::Actors::AbstractActor
- Defined in:
- app/actors/curation_concerns/actors/abstract_actor.rb
Overview
The CurationConcern Abstract actor responds to two primary actions:
-
#create
-
#update
and the following attributes
-
next_actor
-
curation_concern
-
user
it must instantiate the next actor in the chain and instantiate it. it should respond to curation_concern, user and attributes. it ha to next_actor
Direct Known Subclasses
AddAsMemberOfCollectionsActor, AddToWorkActor, ApplyOrderActor, AssignRepresentativeActor, AttachFilesActor, BaseActor, InitializeWorkflowActor, InterpretVisibilityActor, OptimisticLockValidator
Instance Attribute Summary collapse
- #next_actor ⇒ Object readonly
Instance Method Summary collapse
-
#initialize(_curation_concern, _user, next_actor) ⇒ AbstractActor
constructor
A new instance of AbstractActor.
Constructor Details
#initialize(_curation_concern, _user, next_actor) ⇒ AbstractActor
Returns a new instance of AbstractActor.
19 20 21 |
# File 'app/actors/curation_concerns/actors/abstract_actor.rb', line 19 def initialize(_curation_concern, _user, next_actor) @next_actor = next_actor end |
Instance Attribute Details
#next_actor ⇒ Object (readonly)
17 18 19 |
# File 'app/actors/curation_concerns/actors/abstract_actor.rb', line 17 def next_actor @next_actor end |