Method: As2::Message#attachment

Defined in:
lib/as2/message.rb

#attachmentMail::Part

TODO:

maybe rename this to payload. ‘attachment’ sounds very email.

Return the attached file, use .filename and .body on the return value This is the content the sender is sending to us.

Returns:

  • (Mail::Part)


219
220
221
# File 'lib/as2/message.rb', line 219

def attachment
  @attachment ||= self.class.choose_attachment(parts)
end