Class: Dor::Services::Client::Objects

Inherits:
VersionedService show all
Defined in:
lib/dor/services/client/objects.rb

Overview

API calls that are about a repository objects

Instance Method Summary collapse

Methods inherited from VersionedService

#initialize

Constructor Details

This class inherits a constructor from Dor::Services::Client::VersionedService

Instance Method Details

#register(params:) ⇒ HashWithIndifferentAccess

Creates a new object in DOR

Returns:

  • (HashWithIndifferentAccess)

    the response, which includes a :pid



10
11
12
13
# File 'lib/dor/services/client/objects.rb', line 10

def register(params:)
  json = register_response(params: params)
  JSON.parse(json).with_indifferent_access
end