Class: Bagel::Video::Fade
- Inherits:
-
Object
- Object
- Bagel::Video::Fade
- Defined in:
- lib/bagel/video/fade.rb
Instance Attribute Summary collapse
-
#in_duration ⇒ Object
readonly
Returns the value of attribute in_duration.
-
#in_start ⇒ Object
readonly
Returns the value of attribute in_start.
-
#out_duration ⇒ Object
readonly
Returns the value of attribute out_duration.
-
#out_start ⇒ Object
readonly
Returns the value of attribute out_start.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attrs) ⇒ Fade
constructor
A new instance of Fade.
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_duration ⇒ Object (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_start ⇒ Object (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_duration ⇒ Object (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_start ⇒ Object (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_score ⇒ Object
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_clip ⇒ Object
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_overlay ⇒ Object
9 10 11 |
# File 'lib/bagel/video/fade.rb', line 9 def self. new(in_start: 3, in_duration: 1.5, out_start: 8, out_duration: 1.5) end |