Class: Ezid::NewIdentifierResponse Private

Inherits:
IdentifierResponse show all
Defined in:
lib/ezid/responses/new_identifier_response.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

A response to a mint or create request to make a new identifier in EZID

Constant Summary collapse

SHADOW_ARK_RE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/\| (ark:[^\s]+)/

Constants inherited from IdentifierResponse

IdentifierResponse::IDENTIFIER_RE

Constants inherited from Response

Response::ERROR, Response::SUCCESS

Instance Method Summary collapse

Methods inherited from IdentifierResponse

#id

Methods inherited from Response

#content, #error?, #exception, #message, #outcome, #status, #status_line, #success?, #uri_path

Instance Method Details

#shadow_arkObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



12
13
14
# File 'lib/ezid/responses/new_identifier_response.rb', line 12

def shadow_ark
  @shadow_ark ||= SHADOW_ARK_RE.match(message)[1]
end