method
add_attachment
v1_8_6_287 -
Show latest stable
- Class:
SOAP::MIMEMessage
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