Class: MIME::ApplicationMedia
- Inherits:
-
DiscreteMediaType
- Object
- MediaType
- DiscreteMediaType
- MIME::ApplicationMedia
- Defined in:
- lib/mime/discrete_media_type.rb
Overview
ApplicationMedia is intended for discrete data that is to be processed by some type of application program. The body contains information which must be processed by an application before it is viewable or usable by a user.
ApplicationMedia is the catch all class. If your content cannot be identified as another DiscreteMediaType, then it is application media.
Instance Attribute Summary
Attributes inherited from MediaType
Attributes included from Headers::MIME
#content_description, #content_disposition, #content_id, #content_transfer_encoding, #content_type, #mime_version
Instance Method Summary collapse
-
#initialize(body, subtype = 'octet-stream', params = {}) ⇒ ApplicationMedia
constructor
A new instance of ApplicationMedia.
Methods inherited from MediaType
Constructor Details
#initialize(body, subtype = 'octet-stream', params = {}) ⇒ ApplicationMedia
Returns a new instance of ApplicationMedia.
26 27 28 29 |
# File 'lib/mime/discrete_media_type.rb', line 26 def initialize(body, subtype = 'octet-stream', params = {}) @media_type = 'application' super end |