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.perform_later("documents", key)

Instance Method Summary collapse

Instance Method Details

#perform(type, key) ⇒ Object



15
16
17
# File 'lib/dis/jobs/delete.rb', line 15

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