Sha256: 0bf62b072344c7eea6d7cf2035eab04b3c0c46b83da23805741c077475962ce3

Contents?: true

Size: 336 Bytes

Versions: 24

Compression:

Stored size: 336 Bytes

Contents

require_relative "identifier_response"

module Ezid
  #
  # A response to a mint or create request to make a new identifier in EZID
  # @api private
  #
  class NewIdentifierResponse < IdentifierResponse

    SHADOW_ARK_RE = /\| (ark:[^\s]+)/

    def shadow_ark
      @shadow_ark ||= SHADOW_ARK_RE.match(message)[1]
    end

  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

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