Sha256: 1c5448119f28688ab7bf3e961438d03155cb34e5627b1901c6174852139119df

Contents?: true

Size: 210 Bytes

Versions: 24

Compression:

Stored size: 210 Bytes

Contents

module Puree

  module XMLExtractor

    # DOI extractor mixin.
    #
    module DoiMixin

      # @return [String, nil]
      def doi
        xpath_query_for_single_value '//doi'
      end

    end

  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
puree-1.5.0 lib/puree/xml_extractor/mixins/doi_mixin.rb
puree-1.4.0 lib/puree/xml_extractor/mixins/doi_mixin.rb
puree-1.3.0 lib/puree/xml_extractor/mixins/doi_mixin.rb
puree-1.2.0 lib/puree/xml_extractor/mixins/doi_mixin.rb