Class: Loco::UuidJob

Inherits:
ActiveJob::Base
  • Object
show all
Defined in:
app/jobs/loco/uuid_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(serialized_resource, uuid, action) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
# File 'app/jobs/loco/uuid_job.rb', line 7

def perform serialized_resource, uuid, action
  ws_conn_manager = init_ws_conn_manager serialized_resource
  return unless ws_conn_manager
  case action
  when 'add'
    add ws_conn_manager, uuid
  when 'del'
    del ws_conn_manager, uuid
  when 'update'
    update ws_conn_manager, uuid
  end
end