Class: Preservation::Client::Catalog

Inherits:
VersionedApiService show all
Defined in:
lib/preservation/client/catalog.rb

Overview

API calls that are about the catalog

Instance Method Summary collapse

Methods inherited from VersionedApiService

#initialize

Constructor Details

This class inherits a constructor from Preservation::Client::VersionedApiService

Instance Method Details

#update(druid:, version:, size:, storage_location:) ⇒ Object

Parameters:

  • druid (String)

    the object identifierx

  • version (Integer)

    the version of the object

  • size (Integer)

    the size of the object

  • storage_location (String)

    the location of storage



11
12
13
14
15
16
17
18
19
20
21
# File 'lib/preservation/client/catalog.rb', line 11

def update(druid:, version:, size:, storage_location:)
  http_args = {
    druid: druid,
    incoming_version: version,
    incoming_size: size,
    storage_location: storage_location,
    checksums_validated: true
  }

  request(druid: druid, version: version, http_args: http_args)
end