Class: Postpone::Worker

Inherits:
Object
  • Object
show all
Defined in:
lib/postpone/worker.rb

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Worker

Returns a new instance of Worker.



5
6
7
8
# File 'lib/postpone/worker.rb', line 5

def initialize(args)
  Marshal.load(args["object"]).
    send(args["method"], *Marshal.load(args["args"]))
end