Class: Ezid::MintIdentifierRequest Private

Inherits:
Request
  • Object
show all
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

Instance Attribute Summary collapse

Attributes inherited from Request

#client

Instance Method Summary collapse

Methods inherited from Request

#authentication_required?, #execute, execute, #handle_response, #has_metadata?, #query, #response_class, 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

#metadataObject (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

#shoulderObject (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

#pathObject

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