Class: MIME::Application
- Inherits:
-
DiscreteMedia
- Object
- Media
- DiscreteMedia
- MIME::Application
- Defined in:
- lib/mime/discrete_media.rb
Overview
Application 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.
Application is the catch all class. If your content cannot be identified as another DiscreteMedia, then it is application media.
Instance Attribute Summary
Attributes inherited from Media
Attributes included from Headers::MIME
#description, #disposition, #id, #mime_version, #transfer_encoding, #type
Instance Method Summary collapse
-
#initialize(body, subtype = 'octet-stream', params = {}) ⇒ Application
constructor
A new instance of Application.
Methods inherited from Media
Constructor Details
#initialize(body, subtype = 'octet-stream', params = {}) ⇒ Application
Returns a new instance of Application.
26 27 28 |
# File 'lib/mime/discrete_media.rb', line 26 def initialize(body, subtype = 'octet-stream', params = {}) super(body, "application/#{subtype}", params) end |