Class: ApplicationWorker
- Inherits:
-
Object
- Object
- ApplicationWorker
- Includes:
- ActiveSupport::Rescuable, Sidekiq::Worker
- Defined in:
- app/workers/application_worker.rb
Direct Known Subclasses
AssignContractWorker, CreateTicketWorker, CreateWalletWorker, TransactionToBlockWorker
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
#perform ⇒ Object
45 46 47 |
# File 'app/workers/application_worker.rb', line 45 def perform raise NotImplementedError end |
#success? ⇒ Boolean
49 50 51 |
# File 'app/workers/application_worker.rb', line 49 def success? @success ||= false end |