Guest User

Untitled

a guest
Jul 21st, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. str = Nokogiri::XML::Builder.new { |xml|
  2. xml.REQUEST(:key => @key,
  3. :fmt => @pos[:format],
  4. :encoding => @pos[:encoding]) {
  5. xml.TRANSACTION {
  6. xml.FIELDS {
  7. req.fields.each { |field_name|
  8. xml.send(field_name.to_s.upcase, req.send(field_name))
  9. }
  10. }
  11. }
  12. }
  13. }.to_xml#doc.to_xml
  14.  
  15.  
  16.  
  17. # works!
Add Comment
Please, Sign In to add comment