Sha256: dff6bc8b1b0f1d5f7e7ecd37b871c214329770c3d287e9aaabe4b2a77038d3e2

Contents?: true

Size: 476 Bytes

Versions: 10

Compression:

Stored size: 476 Bytes

Contents

module Arpa
  module Services
    module Profiles
      module Remove
        class ProfileRemover

          def remove(entity, disable = false)
            if disable
              remover_repo.disable(entity)
            else
              remover_repo.destroy(entity)
            end
          end

          private

          def remover_repo
            @remover_repo ||= Arpa::Repositories::Profiles::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/profiles/remove/profile_remover.rb
arpa-0.1.0 lib/arpa/services/profiles/remove/profile_remover.rb
arpa-0.0.9 lib/arpa/services/profiles/remove/profile_remover.rb
arpa-0.0.8 lib/arpa/services/profiles/remove/profile_remover.rb
arpa-0.0.7 lib/arpa/services/profiles/remove/profile_remover.rb
arpa-0.0.6 lib/arpa/services/profiles/remove/profile_remover.rb
arpa-0.0.5 lib/arpa/services/profiles/remove/profile_remover.rb
arpa-0.0.4 lib/arpa/services/profiles/remove/profile_remover.rb
arpa-0.0.3 lib/arpa/services/profiles/remove/profile_remover.rb
arpa-0.0.2 lib/arpa/services/profiles/remove/profile_remover.rb