Sha256: 7a70d4cedd13843b05ccb63c9f952fb0b4a21399e32e6f7600195fe3e00cc044

Contents?: true

Size: 528 Bytes

Versions: 10

Compression:

Stored size: 528 Bytes

Contents

module Arpa
  module Services
    module Actions
      module Remove
        class ActionRemover

          def remove_nonexistent_actions(params)
            params[:resource].actions.each do |action|
              exist = params[:actions_names].include?(action.name)
              remover_repo.destroy(action) unless exist
            end
          end

          private

          def remover_repo
            @remover_repo ||= Arpa::Repositories::Actions::Remover.new
          end

        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
arpa-0.2.0 lib/arpa/services/actions/remove/action_remover.rb
arpa-0.1.0 lib/arpa/services/actions/remove/action_remover.rb
arpa-0.0.9 lib/arpa/services/actions/remove/action_remover.rb
arpa-0.0.8 lib/arpa/services/actions/remove/action_remover.rb
arpa-0.0.7 lib/arpa/services/actions/remove/action_remover.rb
arpa-0.0.6 lib/arpa/services/actions/remove/action_remover.rb
arpa-0.0.5 lib/arpa/services/actions/remove/action_remover.rb
arpa-0.0.4 lib/arpa/services/actions/remove/action_remover.rb
arpa-0.0.3 lib/arpa/services/actions/remove/action_remover.rb
arpa-0.0.2 lib/arpa/services/actions/remove/action_remover.rb