Class: Muvy::Video
- Inherits:
-
Object
- Object
- Muvy::Video
- Defined in:
- lib/muvy/video.rb
Instance Attribute Summary collapse
-
#media ⇒ Object
readonly
Returns the value of attribute media.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#settings ⇒ Object
readonly
Returns the value of attribute settings.
-
#vid ⇒ Object
readonly
Returns the value of attribute vid.
Instance Method Summary collapse
-
#initialize(media, options = {}) ⇒ Video
constructor
A new instance of Video.
- #run ⇒ Object
Constructor Details
#initialize(media, options = {}) ⇒ Video
Returns a new instance of Video.
8 9 10 11 |
# File 'lib/muvy/video.rb', line 8 def initialize(media, = {}) @media = media @options = end |
Instance Attribute Details
#media ⇒ Object (readonly)
Returns the value of attribute media.
6 7 8 |
# File 'lib/muvy/video.rb', line 6 def media @media end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'lib/muvy/video.rb', line 6 def @options end |
#settings ⇒ Object (readonly)
Returns the value of attribute settings.
6 7 8 |
# File 'lib/muvy/video.rb', line 6 def settings @settings end |
#vid ⇒ Object (readonly)
Returns the value of attribute vid.
6 7 8 |
# File 'lib/muvy/video.rb', line 6 def vid @vid end |
Instance Method Details
#run ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/muvy/video.rb', line 13 def run @vid = FFMPEG::Movie.new(media) @settings = merge_settings thumbs send_thumbs end |