Class: MIME::VideoMedia
- Inherits:
-
DiscreteMediaType
- Object
- MediaType
- DiscreteMediaType
- MIME::VideoMedia
- Defined in:
- lib/mime/discrete_media_type.rb
Overview
VideoMedia is intended for discrete video content. The content subtype
indicates the specific video format. The RFC describes video media as content that contains a time-varying-picture image, possibly with color and coordinated sound.
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 = 'mpeg', params = {}) ⇒ VideoMedia
constructor
A new instance of VideoMedia.
Methods inherited from MediaType
Constructor Details
#initialize(body, subtype = 'mpeg', params = {}) ⇒ VideoMedia
Returns a new instance of VideoMedia.
72 73 74 75 |
# File 'lib/mime/discrete_media_type.rb', line 72 def initialize(body, subtype = 'mpeg', params = {}) @media_type = 'video' super end |