Class: Ezid::MintIdentifierRequest Private
- Defined in:
- lib/ezid/requests/mint_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.
A request to EZID to mint a new identifier
Constant Summary
Constants inherited from Request
Request::DELETE, Request::GET, Request::POST, Request::PUT, Request::RETRIABLE_SERVER_ERRORS, Request::RETRIES
Instance Attribute Summary collapse
- #metadata ⇒ Object readonly private
- #shoulder ⇒ Object readonly private
Attributes inherited from Request
Instance Method Summary collapse
-
#initialize(client, shoulder, metadata) ⇒ MintIdentifierRequest
constructor
private
A new instance of MintIdentifierRequest.
- #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, shoulder, metadata) ⇒ MintIdentifierRequest
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 MintIdentifierRequest.
18 19 20 21 22 |
# File 'lib/ezid/requests/mint_identifier_request.rb', line 18 def initialize(client, shoulder, ) @shoulder = shoulder @metadata = Metadata.new() super end |
Instance Attribute Details
#metadata ⇒ 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.
16 17 18 |
# File 'lib/ezid/requests/mint_identifier_request.rb', line 16 def @metadata end |
#shoulder ⇒ 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.
16 17 18 |
# File 'lib/ezid/requests/mint_identifier_request.rb', line 16 def shoulder @shoulder 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.
24 25 26 |
# File 'lib/ezid/requests/mint_identifier_request.rb', line 24 def path "/shoulder/#{shoulder}" end |