Class: DestroyAccountJob

Inherits:
Struct
  • Object
show all
Defined in:
app/workers/destroy_account_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_job.rb', line 1

def id
  @id
end

Instance Method Details

#performObject



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

def perform
   = Account.find(id)
  ._destroy if 
end