Class: WebStat::FetchAsHtml

Inherits:
Fetch
  • Object
show all
Defined in:
lib/web_stat/fetch/fetch_as_html.rb

Instance Attribute Summary

Attributes inherited from Fetch

#header, #html, #nokogiri, #status, #url, #userdic

Instance Method Summary collapse

Methods inherited from Fetch

#content, #eyecatch_image_path, #get_last_modified, #get_url, #save_local_path, #site_name, #stat, #title, #youtube_decscription

Constructor Details

#initialize(html) ⇒ FetchAsHtml

initialize class

Parameters:

  • html (String)


6
7
8
9
# File 'lib/web_stat/fetch/fetch_as_html.rb', line 6

def initialize(html)
  @html = html
  @nokogiri = ::Nokogiri::HTML(@html)
end