Class: Bagel::Video::ClipDirector

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(builder) ⇒ ClipDirector

Returns a new instance of ClipDirector.



5
6
7
# File 'lib/bagel/video/clip_director.rb', line 5

def initialize(builder)
  @builder = builder
end

Instance Attribute Details

#builderObject (readonly)

Returns the value of attribute builder.



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

def builder
  @builder
end

Instance Method Details

#build_clipObject



9
10
11
12
13
14
# File 'lib/bagel/video/clip_director.rb', line 9

def build_clip
  builder.set_id
  builder.add_clip_fade
  builder.add_overlays
  builder.clip
end