Class: Bagel::Video::Overlays::Overlay

Inherits:
Object
  • Object
show all
Defined in:
lib/bagel/video/overlays/overlay.rb

Direct Known Subclasses

Comment, Intro, Scoreboard, SecondServe, Stats

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(asset, fade = false) ⇒ Overlay

Returns a new instance of Overlay.



5
6
7
8
# File 'lib/bagel/video/overlays/overlay.rb', line 5

def initialize(asset, fade=false)
  @asset = asset
  @fade = fade
end

Instance Attribute Details

#assetObject (readonly)

Returns the value of attribute asset.



3
4
5
# File 'lib/bagel/video/overlays/overlay.rb', line 3

def asset
  @asset
end

Instance Method Details

#fadeObject



18
19
20
# File 'lib/bagel/video/overlays/overlay.rb', line 18

def fade
  raise_not_implemented_error(self.class, __method__)
end

#orientationObject



10
11
12
# File 'lib/bagel/video/overlays/overlay.rb', line 10

def orientation
  raise_not_implemented_error(self.class, __method__)
end

#paddingObject



14
15
16
# File 'lib/bagel/video/overlays/overlay.rb', line 14

def padding
  raise_not_implemented_error(self.class, __method__)
end