Sha256: 78f6a2ea958833da89c99e70984fbffeb4dc97b8d62872a7ca59d1930f013e9e

Contents?: true

Size: 201 Bytes

Versions: 24

Compression:

Stored size: 201 Bytes

Contents

require_relative "response"

module Ezid
  class IdentifierResponse < Response

    IDENTIFIER_RE = /^(doi|ark|urn):[^\s]+/

    def id
      @id ||= IDENTIFIER_RE.match(message)[0]
    end

  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

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