Class: ComixScraper::Scraper

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/comix_scraper/scraper.rb

Instance Method Summary collapse

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_releasesObject



13
14
15
# File 'lib/comix_scraper/scraper.rb', line 13

def get_new_releases
  get_data("/shipping/newreleases.txt")
end

#get_upcoming_releasesObject



17
18
19
# File 'lib/comix_scraper/scraper.rb', line 17

def get_upcoming_releases
  get_data("/shipping/upcomingreleases.txt")
end