Sha256: 8c92de4faaa552ffe380e694d4a82ed1a510860937db2b5970772ae8eb24792d
Contents?: true
Size: 616 Bytes
Versions: 3
Compression:
Stored size: 616 Bytes
Contents
require 'http_enabled' require 'api_auth' module SimpleWorker class Status < SimpleWorker::ApiAuth extend SimpleWorker::HttpEnabled def initialize(access_key, secret_key, class_name) super(access_key, secret_key) @class_name = class_name end def check(task_id) data = {"task_id"=>task_id} #puts run_http(@access_key, @secret_key, :post, "queue/status", nil, {"task_id"=>@task_id}) puts "response=" + run_http(@access_key, @secret_key, :get, "queue/status", nil, data) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
simple_worker-0.0.3 | lib/status.rb |
simple_worker-0.0.2 | lib/status.rb |
simple_worker-0.0.1 | lib/status.rb |