class HardWorker::Client
Attributes
queue[RW]
Public Class Methods
new()
click to toggle source
# File lib/hard_worker/client.rb, line 5 def initialize server_uri = HardWorker::URI DRb.start_service self.queue = DRbObject.new_with_uri(server_uri) end
Public Instance Methods
perform_belated(job)
click to toggle source
# File lib/hard_worker/client.rb, line 11 def perform_belated(job) queue.push(job) end
Also aliased as: perform_later