Sha256: 7120ce1b52ac2a708155b9e27337d81814a8f16a84d2782d40289de6dbbb9fca

Contents?: true

Size: 575 Bytes

Versions: 15

Compression:

Stored size: 575 Bytes

Contents

module Puree
  module XMLExtractor

    # Paper base XML extractor.
    #
    class Paper < Puree::XMLExtractor::ResearchOutput
      include Puree::XMLExtractor::PagesMixin
      include Puree::XMLExtractor::PageRangeMixin
      include Puree::XMLExtractor::PeerReviewedMixin

      def initialize(xml)
        super
        setup_model :paper
      end

      private

      def combine_metadata
        super
        @model.pages = pages
        @model.page_range = page_range
        @model.peer_reviewed = peer_reviewed
        @model
      end      

    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
puree-2.9.2 lib/puree/xml_extractor/paper.rb
puree-2.9.1 lib/puree/xml_extractor/paper.rb
puree-2.9.0 lib/puree/xml_extractor/paper.rb
puree-2.8.1 lib/puree/xml_extractor/paper.rb
puree-2.8.0 lib/puree/xml_extractor/paper.rb
puree-2.7.0 lib/puree/xml_extractor/paper.rb
puree-2.6.0 lib/puree/xml_extractor/paper.rb
puree-2.5.1 lib/puree/xml_extractor/paper.rb
puree-2.5.0 lib/puree/xml_extractor/paper.rb
puree-2.4.0 lib/puree/xml_extractor/paper.rb
puree-2.3.0 lib/puree/xml_extractor/paper.rb
puree-2.2.0 lib/puree/xml_extractor/paper.rb
puree-2.1.1 lib/puree/xml_extractor/paper.rb
puree-2.1.0 lib/puree/xml_extractor/paper.rb
puree-2.0.0 lib/puree/xml_extractor/paper.rb