Module: Braintree::Xml

Defined in:
lib/braintree/xml.rb,
lib/braintree/xml/rexml.rb,
lib/braintree/xml/libxml.rb,
lib/braintree/xml/parser.rb,
lib/braintree/xml/generator.rb

Defined Under Namespace

Modules: Generator, Libxml, Parser, Rexml

Constant Summary collapse

CONTENT_ROOT =
"__content__"

Class Method Summary collapse

Class Method Details

.hash_from_xml(xml) ⇒ Object



3
4
5
# File 'lib/braintree/xml.rb', line 3

def self.hash_from_xml(xml)
  Parser.hash_from_xml(xml)
end

.hash_to_xml(hash) ⇒ Object



7
8
9
# File 'lib/braintree/xml.rb', line 7

def self.hash_to_xml(hash)
  Generator.hash_to_xml(hash)
end