Class: Imagekitio::Resources::Folders::Job

Inherits:
Object
  • Object
show all
Defined in:
lib/imagekitio/resources/folders/job.rb

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ Job

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Job.



33
34
35
# File 'lib/imagekitio/resources/folders/job.rb', line 33

def initialize(client:)
  @client = client
end

Instance Method Details

#get(job_id, request_options: {}) ⇒ Imagekitio::Models::Folders::JobGetResponse

Some parameter documentations has been truncated, see Models::Folders::JobGetParams for more details.

This API returns the status of a bulk job like copy and move folder operations.



21
22
23
24
25
26
27
28
# File 'lib/imagekitio/resources/folders/job.rb', line 21

def get(job_id, params = {})
  @client.request(
    method: :get,
    path: ["v1/bulkJobs/%1$s", job_id],
    model: Imagekitio::Models::Folders::JobGetResponse,
    options: params[:request_options]
  )
end