class Bagel::Video::Clip
Constants
- EXTENSION
Attributes
fade[RW]
id[RW]
overlays[RW]
Public Class Methods
new(timeframe)
click to toggle source
# File lib/bagel/video/clip.rb, line 8 def initialize(timeframe) @id = nil @fade = nil @timeframe = timeframe @overlays = [] end
Public Instance Methods
clip_path()
click to toggle source
# File lib/bagel/video/clip.rb, line 31 def clip_path File.join(Bagel.config.clip_dir, filename) end
duration()
click to toggle source
# File lib/bagel/video/clip.rb, line 23 def duration timeframe.duration end
save()
click to toggle source
# File lib/bagel/video/clip.rb, line 15 def save ClipSaver.new(self).save end
start()
click to toggle source
# File lib/bagel/video/clip.rb, line 19 def start timeframe.start end
trim_path()
click to toggle source
# File lib/bagel/video/clip.rb, line 27 def trim_path File.join(Bagel.config.trim_dir, filename) end
Private Instance Methods
filename()
click to toggle source
# File lib/bagel/video/clip.rb, line 37 def filename "#{id}#{EXTENSION}" end