Class: NHL

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

Instance Attribute Summary

Attributes inherited from ScraperLeague

#moneyline_sport, #sport_id, #sport_name, #teams

Instance Method Summary collapse

Methods inherited from ScraperLeague

#live_scores, #standings, #team_schedules

Constructor Details

#initializeNHL

Returns a new instance of NHL.



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

def initialize
  @sport_id = 5
  @sport_name = :nhl
  super
  @moneyline_sport = true
end

Instance Method Details

#current_gamesObject



11
12
13
14
# File 'lib/sports/nhl.rb', line 11

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