Class: DestroyUserJob
- Inherits:
-
Struct
- Object
- Struct
- DestroyUserJob
- Defined in:
- app/workers/destroy_user_job.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
Instance Method Summary collapse
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id
1 2 3 |
# File 'app/workers/destroy_user_job.rb', line 1 def id @id end |
Instance Method Details
#perform ⇒ Object
2 3 4 5 |
# File 'app/workers/destroy_user_job.rb', line 2 def perform user = User.find(id) user._destroy if user end |