Class: MangahereCrawler
Instance Attribute Summary
Attributes inherited from MangaCrawler
#parsed_html, #uri, #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/gehentai.rb', line 30
def self.chapter_class
MangahereChapter
end
|
Instance Method Details
#chapters_info ⇒ Object
34
35
36
37
38
|
# File 'lib/yamd/gehentai.rb', line 34
def chapters_info
url = URI.join(self.url, @parsed_html.at_css('a.button.green')['href'])
[{ name: 'OnlyChapter',
url: url }]
end
|
#name ⇒ Object
40
41
42
|
# File 'lib/yamd/gehentai.rb', line 40
def name
@parsed_html.at_css('h1').text.strip
end
|