Class: Exchanger::GetAttachment::Response

Inherits:
Operation::Response show all
Defined in:
lib/exchanger/operations/get_attachment.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

#attachmentsObject


36
37
38
39
40
41
# File 'lib/exchanger/operations/get_attachment.rb', line 36

def attachments
  to_xml.xpath(".//m:Attachments", NS).children.map do |node|
    attachment_klass = Exchanger.const_get(node.name)
    attachment_klass.new_from_xml(node)
  end
end