class WhatAWorld::Issues
Attributes
disputes_hash[RW]
drugs_hash[RW]
refugees_hash[RW]
trafficking_hash[RW]
url_extension[R]
Public Class Methods
new(url_extension)
click to toggle source
# File lib/what_a_world/issues.rb, line 4 def initialize(url_extension) @url_extension = url_extension @trafficking_hash = {} @drugs_hash = {} @refugees_hash = {} @disputes_hash = {} end
Public Instance Methods
scrape()
click to toggle source
# File lib/what_a_world/issues.rb, line 12 def scrape scraper = WhatAWorld::Scraper::ScraperIssues.new(self.url_extension) scraper.scrape_issues self.trafficking_hash = scraper.trafficking_hash self.drugs_hash = scraper.drugs_hash self.refugees_hash = scraper.refugees_hash self.disputes_hash = scraper.disputes_hash end