Sha256: f8b5c4b8b89be47ddcc68241bc00748298ec2531974584ed807e97940e5520c6

Contents?: true

Size: 671 Bytes

Versions: 18

Compression:

Stored size: 671 Bytes

Contents

module CurationConcerns
  # 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
  class AbstractActor
    attr_reader :next_actor

    def initialize(_curation_concern, _user, next_actor)
      @next_actor = next_actor
    end

    delegate :curation_concern, :user, to: :next_actor

    delegate :create, to: :next_actor

    delegate :update, to: :next_actor
  end
end

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
curation_concerns-1.0.0.beta1 app/actors/curation_concerns/abstract_actor.rb
curation_concerns-0.14.0 app/actors/curation_concerns/abstract_actor.rb
curation_concerns-0.14.0.pre4 app/actors/curation_concerns/abstract_actor.rb
curation_concerns-0.14.0.pre3 app/actors/curation_concerns/abstract_actor.rb
curation_concerns-0.14.0.pre2 app/actors/curation_concerns/abstract_actor.rb
curation_concerns-0.14.0.pre1 app/actors/curation_concerns/abstract_actor.rb
curation_concerns-0.13.1 app/actors/curation_concerns/abstract_actor.rb
curation_concerns-0.13.0 app/actors/curation_concerns/abstract_actor.rb
curation_concerns-0.12.0 app/actors/curation_concerns/abstract_actor.rb
curation_concerns-0.12.0.pre9 app/actors/curation_concerns/abstract_actor.rb
curation_concerns-0.12.0.pre8 app/actors/curation_concerns/abstract_actor.rb
curation_concerns-0.12.0.pre7 app/actors/curation_concerns/abstract_actor.rb
curation_concerns-0.12.0.pre6 app/actors/curation_concerns/abstract_actor.rb
curation_concerns-0.12.0.pre5 app/actors/curation_concerns/abstract_actor.rb
curation_concerns-0.12.0.pre4 app/actors/curation_concerns/abstract_actor.rb
curation_concerns-0.12.0.pre3 app/actors/curation_concerns/abstract_actor.rb
curation_concerns-0.12.0.pre2 app/actors/curation_concerns/abstract_actor.rb
curation_concerns-models-0.12.0.pre1 app/actors/curation_concerns/abstract_actor.rb