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, media_subtype, content_params) ⇒ DiscreteMediaType

Returns a new instance of DiscreteMediaType.



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

def initialize(body, media_subtype, content_params)
  AbstractClassError.no_instantiation(self, DiscreteMediaType)
  super(body, "#{@media_type}/#{media_subtype}", content_params)
end