Class: EvernoteLinkExtractor::FileList

Inherits:
Object
  • Object
show all
Defined in:
lib/evernote_link_extractor/file_list.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeFileList

Returns a new instance of FileList.



6
7
8
9
# File 'lib/evernote_link_extractor/file_list.rb', line 6

def initialize
  @user_home = ENV['HOME']
  @file_list = []
end

Instance Attribute Details

#directoryObject (readonly)

Returns the value of attribute directory.



4
5
6
# File 'lib/evernote_link_extractor/file_list.rb', line 4

def directory
  @directory
end

#file_listObject (readonly)

Returns the value of attribute file_list.



4
5
6
# File 'lib/evernote_link_extractor/file_list.rb', line 4

def file_list
  @file_list
end

#user_homeObject (readonly)

Returns the value of attribute user_home.



4
5
6
# File 'lib/evernote_link_extractor/file_list.rb', line 4

def user_home
  @user_home
end

Instance Method Details

#createObject



11
12
13
14
15
16
# File 'lib/evernote_link_extractor/file_list.rb', line 11

def create
  directory_to_scan
  scan_directory
  check_if_files_exist
  file_list
end