Module Wrest::Components::Translators::Xml

  1. lib/wrest/components/translators/xml.rb

Methods

public instance

  1. deserialise
  2. serialise

Public instance methods

deserialise (response,options={})
[show source]
    # File lib/wrest/components/translators/xml.rb, line 14
14:       def deserialise(response,options={})
15:         if(!options[:xpath].nil?)
16:           ActiveSupport::XmlMini.filter(response.body,options[:xpath])
17:         else
18:           Hash.from_xml(response.body)
19:         end
20:       end
serialise (hash, options = {})
[show source]
    # File lib/wrest/components/translators/xml.rb, line 22
22:       def serialise(hash, options = {})
23:         hash.to_xml(options)
24:       end