Class: Kindly::Requester
- Inherits:
-
Object
- Object
- Kindly::Requester
- Defined in:
- lib/kindly/requester.rb
Instance Method Summary collapse
-
#initialize ⇒ Requester
constructor
A new instance of Requester.
- #request(job_name, input = {}) ⇒ Object
Constructor Details
Instance Method Details
#request(job_name, input = {}) ⇒ Object
11 12 13 14 |
# File 'lib/kindly/requester.rb', line 11 def request(job_name, input = {}) job = @db.insert_job(job_name, input) @queue.add(job_name, job['JobId']) end |