Sha256: 6849d749d941363695133e48832198cc5b33957e33307036cc99dd8fe7a354e1
Contents?: true
Size: 1.01 KB
Versions: 2
Compression:
Stored size: 1.01 KB
Contents
# frozen_string_literal: true module SdrClient # The namespace for the "deposit" command module Deposit def self.run(label: nil, type: 'http://cocina.sul.stanford.edu/models/book.jsonld', apo:, collection:, catkey: nil, source_id:, url:, files: []) token = Credentials.read metadata = Request.new(label: label, type: type, apo: apo, collection: collection, source_id: source_id, catkey: catkey) Process.new(metadata: metadata, url: url, token: token, files: files).run end end end require 'json' require 'sdr_client/deposit/files/direct_upload_request' require 'sdr_client/deposit/files/direct_upload_response' require 'sdr_client/deposit/file' require 'sdr_client/deposit/file_set' require 'sdr_client/deposit/request' require 'sdr_client/deposit/process'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sdr-client-0.3.1 | lib/sdr_client/deposit.rb |
sdr-client-0.3.0 | lib/sdr_client/deposit.rb |