Class: GlobalRegistry::Bindings::Workers::DeleteEntityWorker

Inherits:
GlobalRegistry::Bindings::Worker show all
Defined in:
lib/global_registry_bindings/workers/delete_entity_worker.rb

Instance Attribute Summary

Attributes inherited from GlobalRegistry::Bindings::Worker

#model

Instance Method Summary collapse

Methods inherited from GlobalRegistry::Bindings::Worker

#initialize, perform_async, perform_async_real

Constructor Details

This class inherits a constructor from GlobalRegistry::Bindings::Worker

Instance Method Details

#perform(global_registry_id) ⇒ Object



9
10
11
12
13
14
# File 'lib/global_registry_bindings/workers/delete_entity_worker.rb', line 9

def perform(global_registry_id)
  return unless global_registry_id
  GlobalRegistry::Entity.delete(global_registry_id)
rescue RestClient::ResourceNotFound # rubocop:disable Lint/HandleExceptions
  # If the record doesn't exist, we don't care
end