Class: DestroyAccountUserJob

Inherits:
Struct
  • Object
show all
Defined in:
app/workers/destroy_account_user_job.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



1
2
3
# File 'app/workers/destroy_account_user_job.rb', line 1

def id
  @id
end

Instance Method Details

#performObject



2
3
4
5
# File 'app/workers/destroy_account_user_job.rb', line 2

def perform
  accountUser = AccountUser.find(id)
  accountUser._destroy if accountUser
end