Sha256: c6bcb92b9b702877c0b899b44680c397229bc9028f7fcc9c08fa6a8526377fa2

Contents?: true

Size: 737 Bytes

Versions: 37

Compression:

Stored size: 737 Bytes

Contents

module CurationConcerns
  module Actors
    # 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
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
curation_concerns-1.7.8 app/actors/curation_concerns/actors/abstract_actor.rb
curation_concerns-1.7.7 app/actors/curation_concerns/actors/abstract_actor.rb
curation_concerns-2.0.0 app/actors/curation_concerns/actors/abstract_actor.rb
curation_concerns-2.0.0.rc2 app/actors/curation_concerns/actors/abstract_actor.rb
curation_concerns-1.7.6 app/actors/curation_concerns/actors/abstract_actor.rb
curation_concerns-1.7.5 app/actors/curation_concerns/actors/abstract_actor.rb
curation_concerns-1.7.4 app/actors/curation_concerns/actors/abstract_actor.rb
curation_concerns-1.7.3 app/actors/curation_concerns/actors/abstract_actor.rb
curation_concerns-1.7.2 app/actors/curation_concerns/actors/abstract_actor.rb
curation_concerns-2.0.0.rc1 app/actors/curation_concerns/actors/abstract_actor.rb
curation_concerns-1.7.1 app/actors/curation_concerns/actors/abstract_actor.rb
curation_concerns-1.7.0 app/actors/curation_concerns/actors/abstract_actor.rb
curation_concerns-1.7.0.beta1 app/actors/curation_concerns/actors/abstract_actor.rb
curation_concerns-1.6.3 app/actors/curation_concerns/actors/abstract_actor.rb
curation_concerns-1.6.2 app/actors/curation_concerns/actors/abstract_actor.rb
curation_concerns-1.6.1 app/actors/curation_concerns/actors/abstract_actor.rb
curation_concerns-1.6.0 app/actors/curation_concerns/actors/abstract_actor.rb
curation_concerns-1.5.0 app/actors/curation_concerns/actors/abstract_actor.rb
curation_concerns-1.4.0 app/actors/curation_concerns/actors/abstract_actor.rb
curation_concerns-1.3.3 app/actors/curation_concerns/actors/abstract_actor.rb