Class: NHL
- Inherits:
-
ScraperLeague
- Object
- ScraperLeague
- NHL
- Defined in:
- lib/sports/nhl.rb
Instance Attribute Summary
Attributes inherited from ScraperLeague
#moneyline_sport, #sport_id, #sport_name, #teams
Instance Method Summary collapse
- #current_games ⇒ Object
-
#initialize ⇒ NHL
constructor
A new instance of NHL.
Methods inherited from ScraperLeague
#live_scores, #standings, #team_schedules
Constructor Details
#initialize ⇒ NHL
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_games ⇒ Object
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 |