Class: Erika::SlideShow

Inherits:
Object
  • Object
show all
Defined in:
lib/erika/slideshow.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSlideShow

Returns a new instance of SlideShow.



5
6
7
8
9
10
11
# File 'lib/erika/slideshow.rb', line 5

def initialize
  prepare_tmp_dir
  @images = []
  
  # Gen subtitles
  _images_
end

Instance Attribute Details

#imagesObject

Returns the value of attribute images.



3
4
5
# File 'lib/erika/slideshow.rb', line 3

def images
  @images
end

Instance Method Details

#startObject



13
14
15
16
17
18
19
# File 'lib/erika/slideshow.rb', line 13

def start
  Video.merge(images)
  
  _gen_subtitle_file_
  
  Video.new(full_path: Erika::Default.temp.filename).mix()
end