Class: DynarexImport

Inherits:
Object
  • Object
show all
Defined in:
lib/dynarex-import.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options={})
  o = {xml: '', foreign_schema: '', schema: ''}.merge(options)
  xsl = build_xsl(o[:foreign_schema], o[:schema])    
  @to_xml = transform(xsl, o[:xml])
end

Instance Attribute Details

#to_xmlObject (readonly)

Returns the value of attribute to_xml.



9
10
11
# File 'lib/dynarex-import.rb', line 9

def to_xml
  @to_xml
end