Exception: DoneProcessing

Inherits:
Exception
  • Object
show all
Defined in:
lib/scout/work_queue/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pid = Process.pid) ⇒ DoneProcessing

Returns a new instance of DoneProcessing.



3
4
5
# File 'lib/scout/work_queue/exceptions.rb', line 3

def initialize(pid = Process.pid)
  @pid = pid
end

Instance Attribute Details

#pidObject

Returns the value of attribute pid.



2
3
4
# File 'lib/scout/work_queue/exceptions.rb', line 2

def pid
  @pid
end

Instance Method Details

#messageObject



7
8
9
# File 'lib/scout/work_queue/exceptions.rb', line 7

def message
  "Done processing pid #{pid}"
end