Class: FakkuCrawler

Inherits:
MangaCrawler show all
Defined in:
lib/yamd/fakku.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



39
40
41
# File 'lib/yamd/fakku.rb', line 39

def self.chapter_class
  FakkuChapter
end

Instance Method Details

#chapters_infoObject



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

#nameObject



43
44
45
# File 'lib/yamd/fakku.rb', line 43

def name
  @parsed_html.at_css('div.content-name h1').text
end