Sha256: dfef046db4ac94227e4907f426016b3db1360fc3f8b013ab0816ad993d34d4cf
Contents?: true
Size: 493 Bytes
Versions: 9
Compression:
Stored size: 493 Bytes
Contents
# frozen_string_literal: true require 'logger' module SdrClient # The namespace for the "get" command module Find DRO_PATH = '/v1/resources/%<id>s' # @return [String] job id for the background job result def self.run(druid, url:, logger: Logger.new($stdout)) connection = Connection.new(url: url) path = format(DRO_PATH, id: druid) logger.info("Retrieving metadata from: #{path}") response = connection.get(path) response.body end end end
Version data entries
9 entries across 9 versions & 1 rubygems