Class: VegasInsiderScraper::MLB

Inherits:
ScraperLeague show all
Defined in:
lib/vegas_insider_scraper/mlb.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

#initializeMLB

Returns a new instance of MLB.



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

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

Instance Method Details

#current_gamesObject



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

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