Class: VantivLite::XML::REXML::Serializer
- Inherits:
-
Object
- Object
- VantivLite::XML::REXML::Serializer
- Includes:
- Serializer
- Defined in:
- lib/vantiv_lite/xml/rexml.rb
Constant Summary
Constants included from Serializer
Instance Attribute Summary
Attributes included from Serializer
Instance Method Summary collapse
Methods included from Serializer
Instance Method Details
#call(hash) ⇒ Object
32 33 34 35 36 37 38 39 40 |
# File 'lib/vantiv_lite/xml/rexml.rb', line 32 def call(hash) # NOTE: This forces attributes to be delimited with double quotes. Despite the fact that # the Litle API returns single-quoted responses, requests with single-quoted attributes # will yield an internal server error. ::REXML::Document.new(nil, attribute_quote: :quote).tap do |d| d.add(::REXML::XMLDecl.new) add_xml_elements!(d, hash) end.to_s end |