Class: ETL::Parser::NokogiriXmlParser::Field

Inherits:
Object
  • Object
show all
Defined in:
lib/etl/parser/nokogiri_xml_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, xpath) ⇒ Field

Returns a new instance of Field.



76
77
78
79
# File 'lib/etl/parser/nokogiri_xml_parser.rb', line 76

def initialize(name, xpath)
  @name = name
  @xpath = xpath
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



75
76
77
# File 'lib/etl/parser/nokogiri_xml_parser.rb', line 75

def name
  @name
end

#xpathObject (readonly)

Returns the value of attribute xpath.



75
76
77
# File 'lib/etl/parser/nokogiri_xml_parser.rb', line 75

def xpath
  @xpath
end