Class: MIME::Video
- Inherits:
-
DiscreteMedia
- Object
- Media
- DiscreteMedia
- MIME::Video
- Defined in:
- lib/mime/discrete_media.rb
Overview
Video 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 Media
Attributes included from Headers::MIME
#description, #disposition, #id, #mime_version, #transfer_encoding, #type
Instance Method Summary collapse
-
#initialize(body, subtype = 'mpeg', params = {}) ⇒ Video
constructor
A new instance of Video.
Methods inherited from Media
Constructor Details
#initialize(body, subtype = 'mpeg', params = {}) ⇒ Video
Returns a new instance of Video.
68 69 70 |
# File 'lib/mime/discrete_media.rb', line 68 def initialize(body, subtype = 'mpeg', params = {}) super(body, "video/#{subtype}", params) end |