Class: CurationConcerns::Actors::AbstractActor

Inherits:
Object
  • Object
show all
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

Since:

  • 0.14.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(_curation_concern, _user, next_actor) ⇒ AbstractActor

Returns a new instance of AbstractActor.

Since:

  • 0.14.0



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_actorObject (readonly)

Since:

  • 0.14.0



17
18
19
# File 'app/actors/curation_concerns/actors/abstract_actor.rb', line 17

def next_actor
  @next_actor
end