Class: DynarexImport
- Inherits:
-
Object
- Object
- DynarexImport
- Defined in:
- lib/dynarex-import.rb
Instance Attribute Summary collapse
-
#to_xml ⇒ Object
readonly
Returns the value of attribute to_xml.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ DynarexImport
constructor
A new instance of DynarexImport.
Constructor Details
#initialize(options = {}) ⇒ DynarexImport
Returns a new instance of DynarexImport.
11 12 13 14 15 |
# File 'lib/dynarex-import.rb', line 11 def initialize(={}) o = {xml: '', foreign_schema: '', schema: ''}.merge() xsl = build_xsl(o[:foreign_schema], o[:schema]) @to_xml = transform(xsl, o[:xml]) end |
Instance Attribute Details
#to_xml ⇒ Object (readonly)
Returns the value of attribute to_xml.
9 10 11 |
# File 'lib/dynarex-import.rb', line 9 def to_xml @to_xml end |