Class: MangahereCrawler

Inherits:
MangaCrawler show all
Defined in:
lib/yamd/gehentai.rb,
lib/yamd/mangahere.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/gehentai.rb', line 30

def self.chapter_class
  MangahereChapter
end

Instance Method Details

#chapters_infoObject



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

#nameObject



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

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