Class: ZendeskSupportAPI::Jobs
- Inherits:
-
Object
- Object
- ZendeskSupportAPI::Jobs
- Defined in:
- lib/zendesk_support_api/jobs.rb
Overview
Class Method Summary collapse
-
.list(client) ⇒ Hash
Make a request to show all job statuses.
-
.show(client, id) ⇒ Hash
Make a request to show the job status.
-
.show_many(client, ids) ⇒ Hash
Show many job statuses.
Class Method Details
.list(client) ⇒ Hash
Make a request to show all job statuses
64 65 66 |
# File 'lib/zendesk_support_api/jobs.rb', line 64 def self.list(client) client.request(:get, 'job_statuses.json')['job_statuses'] end |
.show(client, id) ⇒ Hash
Make a request to show the job status
38 39 40 |
# File 'lib/zendesk_support_api/jobs.rb', line 38 def self.show(client, id) client.request(:get, "job_statuses/#{id}.json") end |
.show_many(client, ids) ⇒ Hash
Show many job statuses
91 92 93 |
# File 'lib/zendesk_support_api/jobs.rb', line 91 def self.show_many(client, ids) client.request(:get, "job_statuses/show_many.json?ids=#{ids.join(',')}") end |