Class: NdrImport::File::Xml
- Includes:
- Helpers::File::Xml, Helpers::File::XmlStreaming
- Defined in:
- lib/ndr_import/file/xml.rb
Overview
This class is a xml file handler that returns a single table.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize ⇒ Xml
constructor
A new instance of Xml.
Methods included from Helpers::File::XmlStreaming
Methods inherited from Base
Constructor Details
#initialize ⇒ Xml
Returns a new instance of Xml.
15 16 17 18 19 20 21 |
# File 'lib/ndr_import/file/xml.rb', line 15 def initialize(*) super @pattern_match_xpath = @options['pattern_match_record_xpath'] @xml_file_metadata = @options['xml_file_metadata'] @options['slurp'] ? prepare_slurped_file : prepare_streamed_file end |