Class: IntuitIdsAggcat::ChallengeResponses

Inherits:
Object
  • Object
show all
Includes:
XML::Mapping
Defined in:
lib/intuit_ids_aggcat/client/intuit_xml_mappings.rb,
lib/intuit_ids_aggcat/client/intuit_xml_mappings.rb

Instance Method Summary collapse

Instance Method Details

#post_save(xml, options = {:mapping=>:_default}) ⇒ Object



165
166
167
168
169
170
# File 'lib/intuit_ids_aggcat/client/intuit_xml_mappings.rb', line 165

def post_save xml, options={:mapping=>:_default}
  # using REXML's element na1espace method doesn't seem to set the namespace correctly...?
  xml.root.add_namespace "v1", "http://schema.intuit.com/platform/fdatafeed/institutionlogin/v1"
  xml.each_element("//response"){|x| x.add_namespace "v11", "http://schema.intuit.com/platform/fdatafeed/challenge/v1"}
  xml
end