Class: Dis::Jobs::ChangeType

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

Overview

Dis ChangeType Job

Handles delayed object type change.

Dis::Jobs::ChangeType.perform_later("old_things", "new_things", key)

Instance Method Summary collapse

Instance Method Details

#perform(prev_type, new_type, key) ⇒ Object



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

def perform(prev_type, new_type, key)
  Dis::Storage.delayed_store(new_type, key)
  Dis::Storage.delayed_delete(prev_type, key)
end