Sha256: f5468979066b7da3311c40446ed517bdab5b5f3600756db026b77377b3a35428
Contents?: true
Size: 668 Bytes
Versions: 10
Compression:
Stored size: 668 Bytes
Contents
# frozen_string_literal: true module SdrClient # API calls around background job results from dor-services-app module BackgroundJobResults # Get status/result of a background job # @param url [String] url for the service # @param job_id [String] required string representing a job identifier # @return [Hash] result of background job def self.show(url:, job_id:) connection = Connection.new(url: "#{url}/v1/background_job_results/#{job_id}").connection resp = connection.get raise "unexpected response: #{resp.status} #{resp.body}" unless resp.success? JSON.parse(resp.body).with_indifferent_access end end end
Version data entries
10 entries across 10 versions & 1 rubygems