Class: MIME::TextMedia
- Inherits:
-
DiscreteMediaType
- Object
- MediaType
- DiscreteMediaType
- MIME::TextMedia
- Defined in:
- lib/mime/discrete_media_type.rb
Overview
TextMedia is intended for content which is principally textual in form. The subtype
indicates the specific text type, such as plain or html.
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 = 'plain', params = {}) ⇒ TextMedia
constructor
A new instance of TextMedia.
Methods inherited from MediaType
Constructor Details
#initialize(body, subtype = 'plain', params = {}) ⇒ TextMedia
Returns a new instance of TextMedia.
59 60 61 62 |
# File 'lib/mime/discrete_media_type.rb', line 59 def initialize(body, subtype = 'plain', params = {}) @media_type = 'text' super end |