Class: ETL::Parser::SaxParser::Field
- Inherits:
-
Object
- Object
- ETL::Parser::SaxParser::Field
- Defined in:
- lib/etl/parser/sax_parser.rb
Overview
Class representing a field to be loaded from the source
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
The name of the field.
-
#path ⇒ Object
readonly
The XPath-like path to the field in the XML document.
Instance Method Summary collapse
-
#initialize(name, path) ⇒ Field
constructor
:nodoc.
Constructor Details
#initialize(name, path) ⇒ Field
:nodoc
55 56 57 58 |
# File 'lib/etl/parser/sax_parser.rb', line 55 def initialize(name, path) #:nodoc @name = name @path = path end |
Instance Attribute Details
#name ⇒ Object (readonly)
The name of the field
51 52 53 |
# File 'lib/etl/parser/sax_parser.rb', line 51 def name @name end |
#path ⇒ Object (readonly)
The XPath-like path to the field in the XML document
53 54 55 |
# File 'lib/etl/parser/sax_parser.rb', line 53 def path @path end |