Class: Postpone::Worker
- Inherits:
-
Object
- Object
- Postpone::Worker
- Defined in:
- lib/postpone/worker.rb
Instance Method Summary collapse
-
#initialize(args) ⇒ Worker
constructor
A new instance of Worker.
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 |