Method: KindleManager::BooksAdapter#load
- Defined in:
- lib/kindle_manager/adapters/books_adapter.rb
#load ⇒ Object
63 64 65 66 67 68 69 70 |
# File 'lib/kindle_manager/adapters/books_adapter.rb', line 63 def load books = [] store.list_html_files.each do |file| parser = KindleManager::BooksParser.new(file) books += parser.parse end books.sort_by{|b| [-b.date.to_time.to_i, -b.fetched_at.to_i] }.uniq(&:asin) end |