Sha256: c6a5a94cb160d9a396d873a6ea5eaa6ce1d921d18acf2642057a03a17c7c7be3
Contents?: true
Size: 686 Bytes
Versions: 5
Compression:
Stored size: 686 Bytes
Contents
module Duracloud class Manifest include TSV attr_reader :space_id, :store_id def initialize(space_id, store_id = nil) @space_id = space_id @store_id = store_id @tsv_response = nil @bagit_response = nil end def tsv tsv_response.body end def bagit bagit_response.body end private def tsv_response @tsv_response ||= get_response("TSV") end def bagit_response @bagit_response ||= get_response("BAGIT") end def get_response(format) Client.get_manifest(space_id, query(format)) end def query(format) { storeID: store_id, format: format } end end end
Version data entries
5 entries across 5 versions & 1 rubygems