Class: ImportEverything::XmlParser::TableParser
- Inherits:
-
Parser::ImpParsers
- Object
- Parser
- Parser::ImpParsers
- ImportEverything::XmlParser::TableParser
- Includes:
- FromHash
- Defined in:
- lib/import_everything/parsers/xml_parser.rb
Instance Attribute Summary collapse
-
#doc ⇒ Object
Returns the value of attribute doc.
-
#row_path ⇒ Object
Returns the value of attribute row_path.
-
#table ⇒ Object
Returns the value of attribute table.
Instance Method Summary collapse
Methods inherited from Parser::ImpParsers
Methods inherited from Parser
Instance Attribute Details
#doc ⇒ Object
Returns the value of attribute doc.
19 20 21 |
# File 'lib/import_everything/parsers/xml_parser.rb', line 19 def doc @doc end |
#row_path ⇒ Object
Returns the value of attribute row_path.
19 20 21 |
# File 'lib/import_everything/parsers/xml_parser.rb', line 19 def row_path @row_path end |
#table ⇒ Object
Returns the value of attribute table.
19 20 21 |
# File 'lib/import_everything/parsers/xml_parser.rb', line 19 def table @table end |
Instance Method Details
#parsers ⇒ Object
24 25 26 |
# File 'lib/import_everything/parsers/xml_parser.rb', line 24 def parsers row_docs.map { |doc| LineParser.new(:doc => doc, :table => table) } end |
#row_docs ⇒ Object
21 22 23 |
# File 'lib/import_everything/parsers/xml_parser.rb', line 21 def row_docs doc/row_path end |