Sha256: 89b009531579a3c5ce5d6391ffd4cfa3bcbda195a635001a5e8ee1b3a19ca848

Contents?: true

Size: 630 Bytes

Versions: 18

Compression:

Stored size: 630 Bytes

Contents

require_relative "request"
require_relative "../metadata"
require_relative "../responses/mint_identifier_response"

module Ezid
  #
  # A request to EZID to mint a new identifier
  # @api private
  # @see http://ezid.cdlib.org/doc/apidoc.html#operation-modify-identifier
  #
  class MintIdentifierRequest < Request

    self.http_method = POST
    self.response_class = MintIdentifierResponse

    attr_reader :shoulder, :metadata

    def initialize(client, shoulder, metadata)
      @shoulder = shoulder
      @metadata = Metadata.new(metadata)
      super
    end

    def path
      "/shoulder/#{shoulder}"
    end

  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
ezid-client-1.10.0 lib/ezid/requests/mint_identifier_request.rb
ezid-client-1.9.4 lib/ezid/requests/mint_identifier_request.rb
ezid-client-1.9.3 lib/ezid/requests/mint_identifier_request.rb
ezid-client-1.9.2 lib/ezid/requests/mint_identifier_request.rb
ezid-client-1.9.1 lib/ezid/requests/mint_identifier_request.rb
ezid-client-1.9.0 lib/ezid/requests/mint_identifier_request.rb
ezid-client-1.9.0.rc1 lib/ezid/requests/mint_identifier_request.rb
ezid-client-1.8.0 lib/ezid/requests/mint_identifier_request.rb
ezid-client-1.7.1 lib/ezid/requests/mint_identifier_request.rb
ezid-client-1.7.0 lib/ezid/requests/mint_identifier_request.rb
ezid-client-1.6.0 lib/ezid/requests/mint_identifier_request.rb
ezid-client-1.5.0 lib/ezid/requests/mint_identifier_request.rb
ezid-client-1.4.3 lib/ezid/requests/mint_identifier_request.rb
ezid-client-1.4.2 lib/ezid/requests/mint_identifier_request.rb
ezid-client-1.4.1 lib/ezid/requests/mint_identifier_request.rb
ezid-client-1.4.0 lib/ezid/requests/mint_identifier_request.rb
ezid-client-1.3.0 lib/ezid/requests/mint_identifier_request.rb
ezid-client-1.2.0 lib/ezid/requests/mint_identifier_request.rb