Class: ETL::Parser::XmlParser::Field

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, xpath) ⇒ Field

Returns a new instance of Field.



58
59
60
61
# File 'lib/etl/parser/xml_parser.rb', line 58

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

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



57
58
59
# File 'lib/etl/parser/xml_parser.rb', line 57

def name
  @name
end

#xpathObject (readonly)

Returns the value of attribute xpath.



57
58
59
# File 'lib/etl/parser/xml_parser.rb', line 57

def xpath
  @xpath
end