Class: DestroyShowJob

Inherits:
Struct
  • Object
show all
Defined in:
app/models/job/destroy_show_job.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#showObject

Returns the value of attribute show

Returns:

  • (Object)

    the current value of show



1
2
3
# File 'app/models/job/destroy_show_job.rb', line 1

def show
  @show
end

Instance Method Details

#performObject



6
7
8
# File 'app/models/job/destroy_show_job.rb', line 6

def perform
  @show.destroy
end