Class: HentaiCafeCrawler
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/hentaicafe.rb', line 30
def self.chapter_class
HentaiCafeChapter
end
|
Instance Method Details
#chapters_info ⇒ Object
34
35
36
37
38
|
# File 'lib/yamd/hentaicafe.rb', line 34
def chapters_info
css = 'a.x-btn.x-btn-flat.x-btn-rounded.x-btn-large'
[{ name: 'OnlyChapter',
url: @parsed_html.at_css(css)['href'] }]
end
|
#name ⇒ Object
40
41
42
|
# File 'lib/yamd/hentaicafe.rb', line 40
def name
@parsed_html.at_css('h3').text.strip
end
|