Created
March 13, 2015 20:29
-
-
Save postazure/6e0530bc6c695d467b68 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# lib/harvesters/harvester_index.rb | |
class HarvesterIndex | |
def self.yelp | |
restaurants = Restaurant.where.not(yelp_url: nil) | |
restaurants.each do |restaurant| | |
yelp_harvester = YelpHarvester.new(restaurant) | |
yelp_harvester.populate_data | |
yelp_harvester.populate_tags | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment