Class: DestroyShowJob
- Inherits:
-
Struct
- Object
- Struct
- DestroyShowJob
- Defined in:
- app/models/job/destroy_show_job.rb
Instance Attribute Summary collapse
-
#show ⇒ Object
Returns the value of attribute show.
Instance Method Summary collapse
-
#initialize(show) ⇒ DestroyShowJob
constructor
A new instance of DestroyShowJob.
- #perform ⇒ Object
Constructor Details
#initialize(show) ⇒ DestroyShowJob
Returns a new instance of DestroyShowJob.
2 3 4 |
# File 'app/models/job/destroy_show_job.rb', line 2 def initialize(show) @show = show end |
Instance Attribute Details
#show ⇒ Object
Returns the value of attribute show
1 2 3 |
# File 'app/models/job/destroy_show_job.rb', line 1 def show @show end |
Instance Method Details
#perform ⇒ Object
6 7 8 |
# File 'app/models/job/destroy_show_job.rb', line 6 def perform @show.destroy end |