Class: Webshaker::ScrapeResult
- Inherits:
-
Object
- Object
- Webshaker::ScrapeResult
- Defined in:
- lib/webshaker/scrape_result.rb
Instance Attribute Summary collapse
-
#html ⇒ Object
Returns the value of attribute html.
-
#screenshot ⇒ Object
Returns the value of attribute screenshot.
Instance Method Summary collapse
-
#initialize(screenshot, html) ⇒ ScrapeResult
constructor
A new instance of ScrapeResult.
- #save_to(output_dir_path) ⇒ Object
Constructor Details
#initialize(screenshot, html) ⇒ ScrapeResult
Returns a new instance of ScrapeResult.
5 6 7 8 |
# File 'lib/webshaker/scrape_result.rb', line 5 def initialize(screenshot, html) @screenshot = screenshot @html = html end |
Instance Attribute Details
#html ⇒ Object
Returns the value of attribute html.
3 4 5 |
# File 'lib/webshaker/scrape_result.rb', line 3 def html @html end |
#screenshot ⇒ Object
Returns the value of attribute screenshot.
3 4 5 |
# File 'lib/webshaker/scrape_result.rb', line 3 def screenshot @screenshot end |
Instance Method Details
#save_to(output_dir_path) ⇒ Object
10 11 12 13 |
# File 'lib/webshaker/scrape_result.rb', line 10 def save_to(output_dir_path) save_shot(output_dir_path) save_html(output_dir_path) end |