Method: Bumbleworks::Worker::Info#initialize

Defined in:
lib/bumbleworks/worker/info.rb

#initialize(worker) ⇒ Info

Returns a new instance of Info.



73
74
75
76
77
78
# File 'lib/bumbleworks/worker/info.rb', line 73

def initialize(worker)
  @worker = worker
  @last_save = Time.now - 2 * 60

  @msgs = [] unless worker.is_a?(Bumbleworks::Worker::Proxy)
end