Sha256: 04b2ffb050a9a005c37df9e9b13f43be6b7ee2a7fbfff115fe4cf92bf92a4d13

Contents?: true

Size: 445 Bytes

Versions: 13

Compression:

Stored size: 445 Bytes

Contents

# frozen_string_literal: true

module TrajectPlus
  # Reads in XML records for traject
  class XmlReader
    # @param input_stream [File]
    # @param settings [Traject::Indexer::Settings]
    def initialize(input_stream, settings)
      @settings = Traject::Indexer::Settings.new settings
      @input_stream = input_stream
      @xml = Nokogiri::XML(input_stream)
    end

    attr_reader :xml

    def each
      yield(xml)
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
traject_plus-2.0.1 lib/traject_plus/xml_reader.rb
traject_plus-1.3.0 lib/traject_plus/xml_reader.rb
traject_plus-2.0.0 lib/traject_plus/xml_reader.rb
traject_plus-1.2.2 lib/traject_plus/xml_reader.rb
traject_plus-1.2.1 lib/traject_plus/xml_reader.rb
traject_plus-1.2.0 lib/traject_plus/xml_reader.rb
traject_plus-1.1.1 lib/traject_plus/xml_reader.rb
traject_plus-1.1.0 lib/traject_plus/xml_reader.rb
traject_plus-1.0.0 lib/traject_plus/xml_reader.rb
traject_plus-0.1.0 lib/traject_plus/xml_reader.rb
traject_plus-0.0.3 lib/traject_plus/xml_reader.rb
traject_plus-0.0.2 lib/traject_plus/xml_reader.rb
traject_plus-0.0.1 lib/traject_plus/xml_reader.rb