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

#commentObject (readonly)

Returns the value of attribute comment.



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

def comment
  @comment
end

#namesObject (readonly)

Returns the value of attribute names.



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

def names
  @names
end

#scoreObject (readonly)

Returns the value of attribute score.



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

def score
  @score
end

#second_serveObject (readonly)

Returns the value of attribute second_serve.



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

def second_serve
  @second_serve
end

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