Class: Bagel::Video::ClipBuilders::PointClipBuilder
- Inherits:
-
ClipBuilder
- Object
- ClipBuilder
- Bagel::Video::ClipBuilders::PointClipBuilder
- 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
-
#comment ⇒ Object
readonly
Returns the value of attribute comment.
-
#names ⇒ Object
readonly
Returns the value of attribute names.
-
#score ⇒ Object
readonly
Returns the value of attribute score.
-
#second_serve ⇒ Object
readonly
Returns the value of attribute second_serve.
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
#comment ⇒ Object (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 |
#names ⇒ Object (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 |
#score ⇒ Object (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_serve ⇒ Object (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_fade ⇒ Object
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_overlays ⇒ Object
16 17 18 19 20 |
# File 'lib/bagel/video/clip_builders/point_clip_builder.rb', line 16 def if second_serve if comment end |
#set_id ⇒ Object
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 |