Class: Ezid::IdentifierResponse
- Defined in:
- lib/ezid/responses/identifier_response.rb
Direct Known Subclasses
DeleteIdentifierResponse, GetIdentifierMetadataResponse, ModifyIdentifierResponse, NewIdentifierResponse
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?, #error_class, #exception, #initialize, #message, #outcome, #status, #status_line, #success?, #uri_path
Constructor Details
This class inherits a constructor from Ezid::Response
Instance Method Details
#id ⇒ Object
8 9 10 |
# File 'lib/ezid/responses/identifier_response.rb', line 8 def id @id ||= IDENTIFIER_RE.match()[0] end |