Class: PostScraper
- Inherits:
-
Object
- Object
- PostScraper
- Defined in:
- lib/craigslister/post_scraper.rb
Overview
Creates Post objects out of an HTML page
Instance Method Summary collapse
-
#initialize(page, link) ⇒ PostScraper
constructor
A new instance of PostScraper.
- #new_post ⇒ Object
Constructor Details
#initialize(page, link) ⇒ PostScraper
Returns a new instance of PostScraper.
3 4 5 6 |
# File 'lib/craigslister/post_scraper.rb', line 3 def initialize(page, link) @page = page @link = link end |