Class: VegasInsiderScraper::NHL
- Inherits:
-
ScraperLeague
- Object
- ScraperLeague
- VegasInsiderScraper::NHL
- 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
- #current_games ⇒ Object
-
#initialize ⇒ NHL
constructor
A new instance of NHL.
Methods inherited from ScraperLeague
#schedule_for, #sport_name, #standings, #team_schedules
Constructor Details
#initialize ⇒ NHL
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_games ⇒ Object
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 |