Sha256: c2a4b3d24f2d8e3a7606490a119c5cf948d5ccaaa0d4720f77e8e16718678259

Contents?: true

Size: 385 Bytes

Versions: 32

Compression:

Stored size: 385 Bytes

Contents

module RTurk
  
  class Worker
    
    def initialize(id)
      @id = id
    end
    
    # Blocks a worker, the reason is required and not shown to the worker
    #
    def block!(reason)
      RTurk::BlockWorker(:worker_id => @id, :reason => reason)
    end
    
    # Unblock the worker
    #
    def unblock!
      RTurk::UnblockWorker(:worker_id => @id)
    end
    
  end
  
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
rturk-2.12.1 lib/rturk/adapters/worker.rb
rturk-2.12.0 lib/rturk/adapters/worker.rb
rturk-2.11.3 lib/rturk/adapters/worker.rb
rturk-2.11.2 lib/rturk/adapters/worker.rb
rturk-2.11.1 lib/rturk/adapters/worker.rb
rturk-2.11.0 lib/rturk/adapters/worker.rb
rturk-2.10.3 lib/rturk/adapters/worker.rb
rturk-2.10.2 lib/rturk/adapters/worker.rb
rturk-2.10.1 lib/rturk/adapters/worker.rb
rturk-2.10.0 lib/rturk/adapters/worker.rb
rturk-2.9.0 lib/rturk/adapters/worker.rb
rturk-2.8.0 lib/rturk/adapters/worker.rb
rturk-2.7.0 lib/rturk/adapters/worker.rb
rturk-2.6.0 lib/rturk/adapters/worker.rb
rturk-2.5.2 lib/rturk/adapters/worker.rb
rturk-2.5.0 lib/rturk/adapters/worker.rb
rturk-2.4.1 lib/rturk/adapters/worker.rb
rturk-2.4.0 lib/rturk/adapters/worker.rb
rturk-2.3.6 lib/rturk/adapters/worker.rb
rturk-2.3.5 lib/rturk/adapters/worker.rb