Class: Dis::Jobs::Store

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

Overview

Dis Store Job

Handles delayed storage of objects.

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

Instance Method Summary collapse

Instance Method Details

#perform(type, hash) ⇒ Object


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

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