Method: CrowdFlower::Worker#flag
- Defined in:
- lib/crowdflower/worker.rb
#flag(worker_id, reason = nil, persist = false) ⇒ Object
34 35 36 37 38 39 40 |
# File 'lib/crowdflower/worker.rb', line 34 def flag( worker_id, reason = nil, persist = false ) params = { :reason => reason, :persist => persist } connection.put( "#{resource_uri}/#{worker_id}/flag", :body => params, :headers => { "Content-Length" => "0" }) end |