Class: MIME::Video

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

#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 = '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