Class: MIME::DiscreteMediaType

Inherits:
MediaType show all
Defined in:
lib/mime/discrete_media_type.rb

Overview

Discrete media types must be handled by non-MIME mechanisms; they are opaque to MIME processors. Therefore, the body of a DiscreteMediaType object does not need further MIME processing.

This class is abstract.

Instance Attribute Summary

Attributes inherited from 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 MediaType

#to_s

Constructor Details

#initialize(body, content_type = 'application/octet-stream') ⇒ DiscreteMediaType

Returns a new instance of DiscreteMediaType.



12
13
14
15
# File 'lib/mime/discrete_media_type.rb', line 12

def initialize body, content_type = 'application/octet-stream'
  AbstractClassError.no_instantiation(self, DiscreteMediaType)
  super
end