Method: IntacctRB::Attachment#attachment_xml

Defined in:
lib/intacctrb/attachment.rb

#attachment_xml(xml) ⇒ Object



35
36
37
38
39
40
41
42
43
44
45
46
47
# File 'lib/intacctrb/attachment.rb', line 35

def attachment_xml xml
  xml.supdocid object.supdoc_id
  xml.supdocfoldername object.folder_name
  xml.attachments {
    object.attachments.each do |attachment|
      xml.attachment {
        xml.attachmentname attachment.name
        xml.attachmenttype attachment.type
        xml.attachmentdata attachment.data
      }
    end
  }
end