Module: MLBTerminal

Defined in:
lib/mlb_terminal/game.rb,
lib/mlb_terminal/globals.rb,
lib/mlb_terminal/pitcher.rb,
lib/mlb_terminal/version.rb

Defined Under Namespace

Classes: Game, Pitcher

Constant Summary collapse

MLB_BASE_URL =
'http://gd2.mlb.com/components/game/mlb'
TEAMS =
{
:ana => "Los Angeles Angels",
:ari => "Arizona Diamondbacks",
:atl => "Atlanta Braves",
:bal => "Baltimore Orioles",
:bos => "Boston Red Sox",
:cha => "Chicago White Sox",
:chn => "Chicago Cubs",
:cin => "Cincinnati Reds",
:cle => "Cleveland Indians",
:col => "Colorado Rockies",
:det => "Detroit Tigers",
:hou => "Houston Astros",
:kca => "Kansas City Royals",
:lan => "Los Angeles Dodgers",
:mia => "Miami Marlins",
:mil => "Milwaukee Brewers",
:min => "Minnesota Twins",
:nya => "New York Yankees",
:nyn => "New York Mets",
:oak => "Oakland Athletics",
:phi => "Philadelphia Phillies",
:pit => "Pittsburgh Pirates",
:sdn => "San Diego Padres",
:sea => "Seattle Mariners",
:sfn => "San Francisco Giants",
:sln => "Saint Louis Cardinals",
:tba => "Tampa Bay Rays",
:tex => "Texas Rangers",
:tor => "Toronto Blue Jays",
:was => "Washington Nationals"}
PITCH_TYPES =
{
"FA" => "Fastball",
"FF" => "Four-seam Fastball",
"FT" => "Two-seam Fastball",
"FC" => "Fastball / Cutter",
"FS" => "Fastball / Sinker",
"SI" => "Sinker",
"SF" => "Split-Fingered Fastball",
"SL" => "Slider",
"CH" => "Changeup",
"CB" => "Curveball",
"CU" => "Curveball",
"KC" => "Kunckle-curve",
"KN" => "Kunckleball",
"EP" => "Eephus",
"UN" => "Unidentified",
"XX" => "Unidentified",
"PO" => "Pitch out",
"FO" => "Pitch out"}
VERSION =
"0.0.5"