class GamedayCliGem::Scraper

Public Instance Methods

get_page() click to toggle source
# File lib/gameday_cli_gem/scraper.rb, line 5
def get_page 
  Nokogiri::HTML(open("http://www.si.com/scoreboard"))
end
make_games() click to toggle source
# File lib/gameday_cli_gem/scraper.rb, line 13
def make_games
   scrape_games_index.each do |game|
      GamedayCliGem::Game.new_from_index_page(game)
    end
end
scrape_games_index() click to toggle source
# File lib/gameday_cli_gem/scraper.rb, line 9
def scrape_games_index 
    self.get_page.css("div.game")
end