Class: Bagel::Video::Fade

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs) ⇒ Fade

Returns a new instance of Fade.



17
18
19
20
21
22
# File 'lib/bagel/video/fade.rb', line 17

def initialize(attrs)
  @in_start = attrs[:in_start]
  @in_duration = attrs[:in_duration]
  @out_start = attrs[:out_start]
  @out_duration = attrs[:out_duration]
end

Instance Attribute Details

#in_durationObject (readonly)

Returns the value of attribute in_duration.



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

def in_duration
  @in_duration
end

#in_startObject (readonly)

Returns the value of attribute in_start.



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

def in_start
  @in_start
end

#out_durationObject (readonly)

Returns the value of attribute out_duration.



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

def out_duration
  @out_duration
end

#out_startObject (readonly)

Returns the value of attribute out_start.



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

def out_start
  @out_start
end

Class Method Details

.for_final_scoreObject



5
6
7
# File 'lib/bagel/video/fade.rb', line 5

def self.for_final_score
  new(out_start: 3, out_duration: 1.5)
end

.for_stats_clipObject



13
14
15
# File 'lib/bagel/video/fade.rb', line 13

def self.for_stats_clip
  new(out_start: 10.5, out_duration: 1.5)
end

.for_stats_overlayObject



9
10
11
# File 'lib/bagel/video/fade.rb', line 9

def self.for_stats_overlay
  new(in_start: 3, in_duration: 1.5, out_start: 8, out_duration: 1.5)
end