Class: ApplicationWorker

Inherits:
Object
  • Object
show all
Includes:
ActiveSupport::Rescuable, Sidekiq::Worker
Defined in:
app/workers/application_worker.rb

Defined Under Namespace

Classes: AmountNotEnoughError, BlockNotFoundError, PoolNotFoundError, UserNotFoundError, WalletNotFoundError

Constant Summary collapse

ERRORS =
[UserNotFoundError, WalletNotFoundError, AmountNotEnoughError, BlockNotFoundError].freeze

Instance Method Summary collapse

Instance Method Details

#performObject

Raises:

  • (NotImplementedError)


45
46
47
# File 'app/workers/application_worker.rb', line 45

def perform
  raise NotImplementedError
end

#success?Boolean

Returns:

  • (Boolean)


49
50
51
# File 'app/workers/application_worker.rb', line 49

def success?
  @success ||= false
end