Class: YoutubeTools::Converter

Inherits:
Object
  • Object
show all
Defined in:
lib/youtube_tools/converter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file, path = nil) ⇒ Converter

Returns a new instance of Converter.



5
6
7
8
9
10
# File 'lib/youtube_tools/converter.rb', line 5

def initialize(file, path=nil)			
	@folder = path.nil? ? FOLDER_PATH : path
	
	@file = "#{@folder}/#{file}"
	converter_to
end

Instance Attribute Details

#fileObject

Returns the value of attribute file.



3
4
5
# File 'lib/youtube_tools/converter.rb', line 3

def file
  @file
end

#file_nameObject

Returns the value of attribute file_name.



3
4
5
# File 'lib/youtube_tools/converter.rb', line 3

def file_name
  @file_name
end

#folderObject

Returns the value of attribute folder.



3
4
5
# File 'lib/youtube_tools/converter.rb', line 3

def folder
  @folder
end