method

add_attachment

ruby latest stable - Class: SOAP::MIMEMessage

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_8_7_330) is shown here.

add_attachment(attach)
public

No documentation available.

# File lib/soap/mimemessage.rb, line 208
  def add_attachment(attach)
    part = Part.new
    part.headers.add("Content-Type", attach.contenttype)
    part.headers.add("Content-ID", attach.mime_contentid)
    part.body = attach.content
    @parts.unshift(part)
  end