Class: Muvy::Video

Inherits:
Object
  • Object
show all
Defined in:
lib/muvy/video.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, options = {})
  @media = media
  @options = options
end

Instance Attribute Details

#mediaObject (readonly)

Returns the value of attribute media.



6
7
8
# File 'lib/muvy/video.rb', line 6

def media
  @media
end

#optionsObject (readonly)

Returns the value of attribute options.



6
7
8
# File 'lib/muvy/video.rb', line 6

def options
  @options
end

#settingsObject (readonly)

Returns the value of attribute settings.



6
7
8
# File 'lib/muvy/video.rb', line 6

def settings
  @settings
end

#vidObject (readonly)

Returns the value of attribute vid.



6
7
8
# File 'lib/muvy/video.rb', line 6

def vid
  @vid
end

Instance Method Details

#runObject



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