Class: Bagel::Video::ClipBuilders::StatsClipBuilder
- Inherits:
-
ClipBuilder
- Object
- ClipBuilder
- Bagel::Video::ClipBuilders::StatsClipBuilder
- Defined in:
- lib/bagel/video/clip_builders/stats_clip_builder.rb
Constant Summary collapse
- ID_SUFFIX =
'-stats'
Instance Attribute Summary collapse
-
#names ⇒ Object
readonly
Returns the value of attribute names.
-
#points ⇒ Object
readonly
Returns the value of attribute points.
-
#score ⇒ Object
readonly
Returns the value of attribute score.
Attributes inherited from ClipBuilder
Instance Method Summary collapse
Methods inherited from ClipBuilder
Constructor Details
This class inherits a constructor from Bagel::Video::ClipBuilders::ClipBuilder
Instance Attribute Details
#names ⇒ Object (readonly)
Returns the value of attribute names.
3 4 5 |
# File 'lib/bagel/video/clip_builders/stats_clip_builder.rb', line 3 def names @names end |
#points ⇒ Object (readonly)
Returns the value of attribute points.
3 4 5 |
# File 'lib/bagel/video/clip_builders/stats_clip_builder.rb', line 3 def points @points end |
#score ⇒ Object (readonly)
Returns the value of attribute score.
3 4 5 |
# File 'lib/bagel/video/clip_builders/stats_clip_builder.rb', line 3 def score @score end |
Instance Method Details
#add_clip_fade ⇒ Object
11 12 13 |
# File 'lib/bagel/video/clip_builders/stats_clip_builder.rb', line 11 def add_clip_fade clip.fade = Fade.new(out_start: 10.5, out_duration: 1.5) end |
#add_overlays ⇒ Object
15 16 17 18 |
# File 'lib/bagel/video/clip_builders/stats_clip_builder.rb', line 15 def end |
#set_id ⇒ Object
7 8 9 |
# File 'lib/bagel/video/clip_builders/stats_clip_builder.rb', line 7 def set_id clip.id = "#{score.set_number.to_s.rjust(2, '0')}#{ID_SUFFIX}" end |