Class: CreateWalletWorker

Inherits:
ApplicationWorker show all
Defined in:
app/workers/create_wallet_worker.rb

Constant Summary

Constants inherited from ApplicationWorker

ApplicationWorker::ERRORS

Instance Method Summary collapse

Methods inherited from ApplicationWorker

#success?

Instance Method Details

#perform(user_id) ⇒ Object

Raises:

  • (UserNotFindError)


7
8
9
10
11
12
13
# File 'app/workers/create_wallet_worker.rb', line 7

def perform(user_id)
  @user_id = user_id
  raise UserNotFindError unless user_exists?
  if create_wallet
    @success = true
  end
end