Method: Erika::Video#initialize

Defined in:
lib/erika/video.rb

#initialize(image: nil, full_path: '') ⇒ Video

Returns a new instance of Video.



6
7
8
9
10
# File 'lib/erika/video.rb', line 6

def initialize image: nil, full_path: ''
  @image     = image
  @full_path = full_path
  @temp_path = "#{Erika::Default.temp.video_dir}/#{image&.formatted_index}.mp4"
end