Class: Bagel::Video::ClipBuilders::PointClipBuilder

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

Constant Summary collapse

ID_SUFFIX =
'-point'
COMMENT_2ND_SERVE =
'2nd SERVE'

Instance Attribute Summary

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 Method Details

#add_clip_fadeObject



12
13
14
# File 'lib/bagel/video/clip_builders/point_clip_builder.rb', line 12

def add_clip_fade
  # no fade for point clips
end

#add_overlaysObject



16
17
18
19
20
# File 'lib/bagel/video/clip_builders/point_clip_builder.rb', line 16

def add_overlays
  add_scoreboard_overlay
  add_second_serve_overlay if second_serve
  add_comment_overlay if comment
end

#set_idObject



8
9
10
# File 'lib/bagel/video/clip_builders/point_clip_builder.rb', line 8

def set_id
  clip.id = "#{score.id}#{ID_SUFFIX}"
end