Class: MIME::MultipartMedia::Alternative
- Inherits:
-
MIME::MultipartMedia
- Object
- MIME::MediaType
- CompositeMediaType
- MIME::MultipartMedia
- MIME::MultipartMedia::Alternative
- 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
Attributes included from Headers::MIME
#content_description, #content_disposition, #content_id, #content_transfer_encoding, #content_type, #mime_version
Instance Method Summary collapse
-
#initialize ⇒ Alternative
constructor
Returns a MultipartMedia::Alternative object with a content type of multipart/alternative.
Methods inherited from MIME::MultipartMedia
Methods inherited from CompositeMediaType
#add_entity, #attach_entity, #inline_entity
Methods inherited from MIME::MediaType
Constructor Details
#initialize ⇒ Alternative
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 |