class MangaDownloadr::Chapters
Public Class Methods
new(domain, root_uri, cache_http)
click to toggle source
Calls superclass method
# File lib/manga-downloadr/chapters.rb, line 3 def initialize(domain, root_uri, cache_http) @root_uri = root_uri super(domain, cache_http) end
Public Instance Methods
fetch()
click to toggle source
# File lib/manga-downloadr/chapters.rb, line 8 def fetch get @root_uri do |html| nodes = html.css("#listing a") nodes.map { |node| node["href"] } end end