Class: Ezid::IdentifierRequest Abstract Private

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

This class is abstract.

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, 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

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

#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.



17
18
19
# File 'lib/ezid/requests/identifier_request.rb', line 17

def path
  "/id/#{identifier}"
end