class AllQ::Delete
Public Instance Methods
base_send(job_id)
click to toggle source
# File lib/allq/actions/delete.rb, line 13 def base_send(job_id) { 'action' => 'delete', 'params' => { 'job_id' => job_id } } end
snd(data)
click to toggle source
# 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