Class: WebStat::FetchAsHtml
- 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
-
#initialize(html) ⇒ FetchAsHtml
constructor
initialize class.
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
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 |