Module: WorldpayCnp::XML

Defined in:
lib/worldpay_cnp/xml.rb,
lib/worldpay_cnp/xml/parser.rb,
lib/worldpay_cnp/xml/nokogiri.rb,
lib/worldpay_cnp/xml/serializer.rb

Defined Under Namespace

Modules: Nokogiri, Parser, Serializer

Class Method Summary collapse

Class Method Details

.parse(xml) ⇒ Object



8
9
10
# File 'lib/worldpay_cnp/xml.rb', line 8

def parse(xml)
  Nokogiri::Parser.new.call(xml)
end

.serialize(hash) ⇒ Object



12
13
14
# File 'lib/worldpay_cnp/xml.rb', line 12

def serialize(hash)
  Nokogiri::Serializer.new.call(hash)
end