Class: MIME::MultipartMedia::Related

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

Overview

The Related subtype aggregates multiple related entities. The message consists of a root (the first entity) which references subsequent inline entities. Message entities should be referenced by their Content-ID header. The syntax of a reference is unspecified and is instead dictated by the encoding or protocol used in the entity.


RFC consulted during implementation:

  • RFC-2387 The MIME Multipart/Related Content-type

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

#initializeRelated

Returns a MultipartMedia::Related object with a content type of multipart/related.



163
164
165
# File 'lib/mime/composite_media_type.rb', line 163

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