Class: MIME::MultipartMedia::Alternative

Inherits:
MIME::MultipartMedia show all
Defined in:
lib/mime/composite_media_type.rb

Overview

The Alternative subtype indicates that each contained entity is an alternatively formatted version of the same content. The most complex version should be added to the message first, i.e. it will be sequentially last in the message.

Instance Attribute Summary

Attributes inherited from MIME::MediaType

#headers

Attributes included from Headers::MIME

#content_description, #content_disposition, #content_id, #content_transfer_encoding, #content_type, #mime_version

Instance Method Summary collapse

Methods inherited from MIME::MultipartMedia

#body, #boundary

Methods inherited from CompositeMediaType

#add_entity, #attach_entity, #inline_entity

Methods inherited from MIME::MediaType

#to_s

Constructor Details

#initializeAlternative

Returns a MultipartMedia::Alternative object with a content type of multipart/alternative.



95
96
97
# File 'lib/mime/composite_media_type.rb', line 95

def initialize
  super("multipart/alternative; boundary=#{boundary}")
end