Class: ImportEverything::XmlParser::TableParser

Inherits:
Parser::ImpParsers show all
Includes:
FromHash
Defined in:
lib/import_everything/parsers/xml_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Parser::ImpParsers

#line_parsers

Methods inherited from Parser

#value_hashes

Instance Attribute Details

#docObject

Returns the value of attribute doc.



19
20
21
# File 'lib/import_everything/parsers/xml_parser.rb', line 19

def doc
  @doc
end

#row_pathObject

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

#tableObject

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

#parsersObject



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_docsObject



21
22
23
# File 'lib/import_everything/parsers/xml_parser.rb', line 21

def row_docs
  doc/row_path
end