Class: KindleManager::BooksParser

Inherits:
BaseParser show all
Defined in:
lib/kindle_manager/parsers/books_parser.rb

Defined Under Namespace

Classes: BookRow

Instance Attribute Summary

Attributes inherited from BaseParser

#fetched_at

Instance Method Summary collapse

Methods inherited from BaseParser

#body, #doc, #initialize

Constructor Details

This class inherits a constructor from KindleManager::BaseParser

Instance Method Details

#parseObject



49
50
51
52
53
# File 'lib/kindle_manager/parsers/books_parser.rb', line 49

def parse
  @_parsed ||= begin
    doc.css("div[id^='contentTabList_']").map{|e| BookRow.new(e, fetched_at: fetched_at) }
  end
end