Class: Hyrax::Actors::AbstractActor

Inherits:
Object
  • Object
show all
Defined in:
app/actors/hyrax/actors/abstract_actor.rb

Overview

The Hyrax::AbstractActor 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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(_curation_concern, _ability, next_actor, ability: nil) ⇒ AbstractActor

Returns a new instance of AbstractActor.



19
20
21
22
# File 'app/actors/hyrax/actors/abstract_actor.rb', line 19

def initialize(_curation_concern, _ability, next_actor, ability: nil)
  @next_actor = next_actor
  @ability = ability
end

Instance Attribute Details

#next_actorObject (readonly)

Returns the value of attribute next_actor.



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

def next_actor
  @next_actor
end