Class: FakkuCrawler
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
39
40
41
|
# File 'lib/yamd/fakku.rb', line 39
def self.chapter_class
FakkuChapter
end
|
Instance Method Details
#chapters_info ⇒ Object
33
34
35
36
37
|
# File 'lib/yamd/fakku.rb', line 33
def chapters_info
url = URI.join(self.url, @parsed_html.at_css('a.button.green')['href'])
[{ name: 'OnlyChapter',
url: url }]
end
|
#name ⇒ Object
43
44
45
|
# File 'lib/yamd/fakku.rb', line 43
def name
@parsed_html.at_css('div.content-name h1').text
end
|