Class: Grubby::PageScraper
- Defined in:
- lib/grubby/page_scraper.rb
Instance Attribute Summary collapse
-
#page ⇒ Mechanize::Page
readonly
The Page being scraped.
Attributes inherited from Scraper
Instance Method Summary collapse
-
#initialize(source) ⇒ PageScraper
constructor
A new instance of PageScraper.
Methods inherited from Scraper
Constructor Details
#initialize(source) ⇒ PageScraper
Returns a new instance of PageScraper.
8 9 10 11 |
# File 'lib/grubby/page_scraper.rb', line 8 def initialize(source) @page = source.assert_kind_of!(Mechanize::Page) super end |
Instance Attribute Details
#page ⇒ Mechanize::Page (readonly)
Returns The Page being scraped.
5 6 7 |
# File 'lib/grubby/page_scraper.rb', line 5 def page @page end |