Class: MIME::Application

Inherits:
DiscreteMedia show all
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

#body, #headers

Attributes included from Headers::MIME

#description, #disposition, #id, #mime_version, #transfer_encoding, #type

Instance Method Summary collapse

Methods inherited from Media

#to_s

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