Class: Bagel::Video::ClipBuilders::IntroClipBuilder

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

Constant Summary collapse

ID =
'00-intro'

Instance Attribute Summary collapse

Attributes inherited from ClipBuilder

#clip

Instance Method Summary collapse

Methods inherited from ClipBuilder

#initialize

Constructor Details

This class inherits a constructor from Bagel::Video::ClipBuilders::ClipBuilder

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



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

def description
  @description
end

#titleObject (readonly)

Returns the value of attribute title.



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

def title
  @title
end

Instance Method Details

#add_clip_fadeObject



11
12
13
# File 'lib/bagel/video/clip_builders/intro_clip_builder.rb', line 11

def add_clip_fade
  clip.fade = Video::Fade.new(in_start: 0, in_duration: 1.5, out_start: 6.5, out_duration: 1.5)
end

#add_overlaysObject



15
16
17
# File 'lib/bagel/video/clip_builders/intro_clip_builder.rb', line 15

def add_overlays
  add_intro_overlay
end

#set_idObject



7
8
9
# File 'lib/bagel/video/clip_builders/intro_clip_builder.rb', line 7

def set_id
  clip.id = ID
end