Class: Bagel::Video::ClipBuilders::ClipBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/bagel/video/clip_builders/clip_builder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ ClipBuilder

Returns a new instance of ClipBuilder.



5
6
7
8
# File 'lib/bagel/video/clip_builders/clip_builder.rb', line 5

def initialize(data)
  @clip = Video::Clip.new(Timeframe.new(data[:start], data[:finish]))
  post_initialize(data)
end

Instance Attribute Details

#clipObject (readonly)

Returns the value of attribute clip.



3
4
5
# File 'lib/bagel/video/clip_builders/clip_builder.rb', line 3

def clip
  @clip
end

Instance Method Details

#add_clip_fadeObject



14
15
16
# File 'lib/bagel/video/clip_builders/clip_builder.rb', line 14

def add_clip_fade
  raise_not_implemented_error(self.class, __method__)
end

#add_overlaysObject



18
19
20
# File 'lib/bagel/video/clip_builders/clip_builder.rb', line 18

def add_overlays
  raise_not_implemented_error(self.class, __method__)
end

#set_idObject



10
11
12
# File 'lib/bagel/video/clip_builders/clip_builder.rb', line 10

def set_id
  raise_not_implemented_error(self.class, __method__)
end