lib/preservation/client/objects.rb in preservation-client-3.2.1 vs lib/preservation/client/objects.rb in preservation-client-3.3.0
- old
+ new
@@ -73,9 +73,10 @@
# retrieve the storage location for the primary moab of the given druid
# @param [String] druid - with or without prefix: 'druid:ab123cd4567' or 'ab123cd4567'
# @return [String] the storage location of the primary moab for the given druid
# @raise [Preservation::Client::NotFoundError] when druid is not found
+ # @raise [Preservation::Client::LockedError] when druid is in locked state (not available for versioning)
def primary_moab_location(druid:)
get("objects/#{druid}/primary_moab_location", {}, on_data: nil)
end
# convenience method for retrieving latest Moab::SignatureCatalog from a Moab object,