Class: VegasInsiderScraper::NHL

Inherits:
ScraperLeague show all
Defined in:
lib/vegas_insider_scraper/nhl.rb

Instance Attribute Summary

Attributes inherited from ScraperLeague

#moneyline_sport, #teams, #vegas_sport_identifier

Instance Method Summary collapse

Methods inherited from ScraperLeague

#schedule_for, #sport_name, #standings, #team_schedules

Constructor Details

#initializeNHL

Returns a new instance of NHL.



4
5
6
7
8
# File 'lib/vegas_insider_scraper/nhl.rb', line 4

def initialize
  @vegas_sport_identifier = 'nhl'
  super
  @moneyline_sport = true
end

Instance Method Details

#current_gamesObject



10
11
12
13
# File 'lib/vegas_insider_scraper/nhl.rb', line 10

def current_games
  @current_games ||= get_lines(["http://www.vegasinsider.com/#{vegas_sport_identifier}/odds/las-vegas/puck/", 
    "http://www.vegasinsider.com/#{vegas_sport_identifier}/odds/las-vegas/"])
end