Class: MangahereCrawler
Instance Attribute Summary
Attributes inherited from MangaCrawler
#parsed_html, #url
Class Method Summary
collapse
Instance Method Summary
collapse
#chapters, #initialize
Constructor Details
This class inherits a constructor from MangaCrawler
Class Method Details
.chapter_class ⇒ Object
30
31
32
|
# File 'lib/yamd/mangahere.rb', line 30
def self.chapter_class
MangahereChapter
end
|
Instance Method Details
#chapters_info ⇒ Object
34
35
36
37
38
39
40
|
# File 'lib/yamd/mangahere.rb', line 34
def chapters_info
@parsed_html.css('.detail_list ul li a').reverse.map do | chapter_link |
{ name: chapter_link.text.strip,
url: chapter_link['href']
}
end
end
|
#name ⇒ Object
42
43
44
|
# File 'lib/yamd/mangahere.rb', line 42
def name
@parsed_html.at_css('h1').text.strip
end
|