Class: Exchanger::FindFolder::Response

Inherits:
Operation::Response show all
Defined in:
lib/exchanger/operations/find_folder.rb

Instance Attribute Summary

Attributes inherited from Operation::Response

#body, #status

Instance Method Summary collapse

Methods inherited from Operation::Response

#code, #initialize, #parse_response_message, #parse_soap_errors, #to_xml

Constructor Details

This class inherits a constructor from Exchanger::Operation::Response

Instance Method Details

#foldersObject



47
48
49
50
51
52
# File 'lib/exchanger/operations/find_folder.rb', line 47

def folders
  to_xml.xpath(".//t:Folders", NS).children.map do |node|
    folder_klass = Exchanger.const_get(node.name)
    folder_klass.new_from_xml(node)
  end
end