Class: AllQ::Delete
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#build_job, #initialize, #rcv, #send_hash_as_json, #setup
Constructor Details
This class inherits a constructor from AllQ::Base
Instance Method Details
#base_send(job_id) ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/allq/actions/delete.rb', line 13 def base_send(job_id) { 'action' => 'delete', 'params' => { 'job_id' => job_id } } end |
#snd(data) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/allq/actions/delete.rb', line 4 def snd(data) job_id = data[:job_id] send_data = base_send(job_id) response = send_hash_as_json(send_data, true) result = rcv(response) return JSON.parse(result) end |