Class: ETL::Parser::SaxParser::Field

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

Overview

Class representing a field to be loaded from the source

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

The name of the field



51
52
53
# File 'lib/etl/parser/sax_parser.rb', line 51

def name
  @name
end

#pathObject (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