Class: Ezid::IdentifierRequest Abstract Private
- Defined in:
- lib/ezid/requests/identifier_request.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.
Direct Known Subclasses
DeleteIdentifierRequest, GetIdentifierMetadataRequest, IdentifierWithMetadataRequest
Constant Summary
Constants inherited from Request
Request::DELETE, Request::GET, Request::POST, Request::PUT, Request::RETRIABLE_SERVER_ERRORS, Request::RETRIES
Instance Attribute Summary collapse
- #identifier ⇒ Object readonly private
Attributes inherited from Request
Instance Method Summary collapse
-
#initialize(client, identifier) ⇒ IdentifierRequest
constructor
private
A new instance of IdentifierRequest.
- #path ⇒ Object private
Methods inherited from Request
#authentication_required?, #execute, execute, #handle_response, #has_metadata?, #query, #response_class, #short_name, short_name, #uri
Constructor Details
#initialize(client, identifier) ⇒ IdentifierRequest
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.
Returns a new instance of IdentifierRequest.
12 13 14 15 |
# File 'lib/ezid/requests/identifier_request.rb', line 12 def initialize(client, identifier) @identifier = identifier super end |
Instance Attribute Details
#identifier ⇒ Object (readonly)
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.
10 11 12 |
# File 'lib/ezid/requests/identifier_request.rb', line 10 def identifier @identifier end |
Instance Method Details
#path ⇒ Object
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.
17 18 19 |
# File 'lib/ezid/requests/identifier_request.rb', line 17 def path "/id/#{identifier}" end |