Class: BackgroundJobs::Job

Inherits:
Object
  • Object
show all
Defined in:
lib/background_jobs/job.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#id=(value) ⇒ Object (writeonly)

Sets the attribute id

Parameters:

  • value

    the value to set the attribute id to.



3
4
5
# File 'lib/background_jobs/job.rb', line 3

def id=(value)
  @id = value
end

Instance Method Details

#error(job, exception) ⇒ Object



13
14
15
# File 'lib/background_jobs/job.rb', line 13

def error(job, exception)
  Airbrake.notify exception
end

#executeObject

Raises:

  • (NotImplementedError)


9
10
11
# File 'lib/background_jobs/job.rb', line 9

def execute
  raise NotImplementedError
end

#performObject



5
6
7
# File 'lib/background_jobs/job.rb', line 5

def perform
  execute
end