Class: Crowdkit::Client::Workers
- Defined in:
- lib/crowdkit/client/workers.rb
Instance Attribute Summary
Attributes inherited from API
#auto_pagination, #client, #stored_params
Instance Method Summary collapse
Methods inherited from API
#arguments, extract_class_name, #id_key, #initialize, namespace, #set, #with
Methods included from API::RequestMethods
Constructor Details
This class inherits a constructor from Crowdkit::API
Instance Method Details
#deflag(*args) ⇒ Object
8 9 10 11 |
# File 'lib/crowdkit/client/workers.rb', line 8 def deflag(*args) arguments(args, required: [:worker_id]) do_put("workers/#{worker_id}/deflag", arguments.params) end |
#flag(*args) ⇒ Object
3 4 5 6 |
# File 'lib/crowdkit/client/workers.rb', line 3 def flag(*args) arguments(args, required: [:worker_id, :reason]) do_put("workers/#{worker_id}/flag", {reason: reason}.merge(arguments.params)) end |