Class: Ezid::IdentifierResponse

Inherits:
Response
  • Object
show all
Defined in:
lib/ezid/responses/identifier_response.rb

Constant Summary collapse

IDENTIFIER_RE =
/^(doi|ark|urn):[^\s]+/

Constants inherited from Response

Response::ERROR, Response::SUCCESS

Instance Method Summary collapse

Methods inherited from Response

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

Instance Method Details

#idObject



8
9
10
# File 'lib/ezid/responses/identifier_response.rb', line 8

def id
  @id ||= IDENTIFIER_RE.match(message)[0]
end