Class: MIME::TextMedia

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

#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, 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