Class: Dis::Jobs::Delete

Inherits:
ActiveJob::Base
  • Object
show all
Defined in:
lib/dis/jobs/delete.rb

Overview

Dis Delete Job

Handles delayed deletion of objects.

Dis::Jobs::Delete.enqueue("documents", hash)

Instance Method Summary collapse

Instance Method Details

#perform(type, hash) ⇒ Object


13
14
15
# File 'lib/dis/jobs/delete.rb', line 13

def perform(type, hash)
  Dis::Storage.delayed_delete(type, hash)
end