Class: HentaiCafeCrawler

Inherits:
MangaCrawler show all
Defined in:
lib/yamd/hentaicafe.rb

Instance Attribute Summary

Attributes inherited from MangaCrawler

#parsed_html, #uri, #url

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from MangaCrawler

#chapters, #initialize

Constructor Details

This class inherits a constructor from MangaCrawler

Class Method Details

.chapter_classObject



30
31
32
# File 'lib/yamd/hentaicafe.rb', line 30

def self.chapter_class
  HentaiCafeChapter
end

Instance Method Details

#chapters_infoObject



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

#nameObject



40
41
42
# File 'lib/yamd/hentaicafe.rb', line 40

def name
  @parsed_html.at_css('h3').text.strip
end