Class: DestroyUserJob

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

def id
  @id
end

Instance Method Details

#performObject



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

def perform
  user = User.find(id)
  user._destroy if user
end