Class: ComixScraper::Scraper
- Inherits:
-
Object
- Object
- ComixScraper::Scraper
- Includes:
- HTTParty
- Defined in:
- lib/comix_scraper/scraper.rb
Instance Method Summary collapse
- #get_new_releases ⇒ Object
- #get_upcoming_releases ⇒ Object
-
#initialize(base_url = 'http://www.previewsworld.com/') ⇒ Scraper
constructor
A new instance of Scraper.
Constructor Details
#initialize(base_url = 'http://www.previewsworld.com/') ⇒ Scraper
Returns a new instance of Scraper.
9 10 11 |
# File 'lib/comix_scraper/scraper.rb', line 9 def initialize(base_url = 'http://www.previewsworld.com/') @base_url = base_url end |
Instance Method Details
#get_new_releases ⇒ Object
13 14 15 |
# File 'lib/comix_scraper/scraper.rb', line 13 def get_new_releases get_data("/shipping/newreleases.txt") end |
#get_upcoming_releases ⇒ Object
17 18 19 |
# File 'lib/comix_scraper/scraper.rb', line 17 def get_upcoming_releases get_data("/shipping/upcomingreleases.txt") end |