Class: Mappum::RubyXmlTransform

Inherits:
RubyTransform show all
Defined in:
lib/mappum/xml_transform.rb

Instance Attribute Summary

Attributes inherited from RubyTransform

#map_catalogue

Instance Method Summary collapse

Methods inherited from RubyTransform

#transform

Constructor Details

#initialize(*args) ⇒ RubyXmlTransform

Returns a new instance of RubyXmlTransform.



161
162
163
# File 'lib/mappum/xml_transform.rb', line 161

def initialize(*args)
  super(*args)
end

Instance Method Details

#get(object, field) ⇒ Object



164
165
166
167
168
169
170
# File 'lib/mappum/xml_transform.rb', line 164

def get(object, field)
  begin
    super(object, field)
  rescue NoMethodError
    super(object, XSD::CodeGen::GenSupport.safemethodname(field.to_s).to_sym)
  end
end