├── .gitignore ├── Gemfile ├── LICENSE ├── README ├── README.md ├── README.rdoc ├── Rakefile ├── db └── db_structure.sql ├── doc ├── classes │ ├── AtBat.html │ ├── AtBat.src │ │ ├── M000112.html │ │ └── M000113.html │ ├── Batter.html │ ├── Batter.src │ │ ├── M000147.html │ │ ├── M000148.html │ │ ├── M000149.html │ │ └── M000150.html │ ├── BattingAppearance.html │ ├── BattingAppearance.src │ │ ├── M000218.html │ │ ├── M000219.html │ │ └── M000220.html │ ├── BattingStats.html │ ├── BattingStats.src │ │ └── M000165.html │ ├── BoxScore.html │ ├── BoxScore.src │ │ ├── M000052.html │ │ ├── M000053.html │ │ ├── M000054.html │ │ ├── M000055.html │ │ ├── M000056.html │ │ └── M000057.html │ ├── CacheFetcher.html │ ├── CacheFetcher.src │ │ ├── M000145.html │ │ └── M000146.html │ ├── Coach.html │ ├── Coach.src │ │ └── M000130.html │ ├── DataDownloader.html │ ├── DataDownloader.src │ │ ├── M000099.html │ │ ├── M000100.html │ │ ├── M000101.html │ │ ├── M000102.html │ │ ├── M000103.html │ │ ├── M000104.html │ │ ├── M000105.html │ │ ├── M000106.html │ │ ├── M000107.html │ │ ├── M000108.html │ │ ├── M000109.html │ │ ├── M000110.html │ │ └── M000111.html │ ├── Event.html │ ├── Event.src │ │ └── M000222.html │ ├── EventLog.html │ ├── EventLog.src │ │ ├── M000114.html │ │ ├── M000115.html │ │ ├── M000116.html │ │ ├── M000117.html │ │ ├── M000118.html │ │ ├── M000119.html │ │ ├── M000120.html │ │ └── M000121.html │ ├── Game.html │ ├── Game.src │ │ ├── M000189.html │ │ ├── M000190.html │ │ ├── M000191.html │ │ ├── M000192.html │ │ ├── M000193.html │ │ ├── M000194.html │ │ ├── M000195.html │ │ ├── M000196.html │ │ ├── M000197.html │ │ ├── M000198.html │ │ ├── M000199.html │ │ ├── M000200.html │ │ ├── M000201.html │ │ ├── M000202.html │ │ ├── M000203.html │ │ ├── M000204.html │ │ ├── M000205.html │ │ ├── M000206.html │ │ ├── M000207.html │ │ ├── M000208.html │ │ ├── M000209.html │ │ ├── M000210.html │ │ ├── M000211.html │ │ ├── M000212.html │ │ ├── M000213.html │ │ ├── M000214.html │ │ ├── M000215.html │ │ ├── M000216.html │ │ └── M000217.html │ ├── GameStatus.html │ ├── Gameday.html │ ├── Gameday.src │ │ ├── M000263.html │ │ ├── M000264.html │ │ └── M000265.html │ ├── GamedayFetcher.html │ ├── GamedayFetcher.src │ │ ├── M000021.html │ │ ├── M000022.html │ │ ├── M000023.html │ │ ├── M000024.html │ │ ├── M000025.html │ │ ├── M000026.html │ │ ├── M000027.html │ │ ├── M000028.html │ │ ├── M000029.html │ │ ├── M000030.html │ │ ├── M000031.html │ │ ├── M000032.html │ │ ├── M000033.html │ │ ├── M000034.html │ │ ├── M000035.html │ │ ├── M000036.html │ │ ├── M000037.html │ │ ├── M000038.html │ │ ├── M000039.html │ │ ├── M000040.html │ │ ├── M000041.html │ │ ├── M000042.html │ │ ├── M000043.html │ │ ├── M000044.html │ │ ├── M000045.html │ │ ├── M000046.html │ │ ├── M000047.html │ │ ├── M000048.html │ │ ├── M000049.html │ │ ├── M000050.html │ │ └── M000051.html │ ├── GamedayLocalFetcher.html │ ├── GamedayLocalFetcher.src │ │ ├── M000233.html │ │ ├── M000234.html │ │ ├── M000235.html │ │ ├── M000236.html │ │ ├── M000237.html │ │ ├── M000238.html │ │ ├── M000239.html │ │ ├── M000240.html │ │ ├── M000241.html │ │ ├── M000242.html │ │ ├── M000243.html │ │ ├── M000244.html │ │ ├── M000245.html │ │ ├── M000246.html │ │ ├── M000247.html │ │ ├── M000248.html │ │ ├── M000249.html │ │ ├── M000250.html │ │ ├── M000251.html │ │ ├── M000252.html │ │ ├── M000253.html │ │ ├── M000254.html │ │ ├── M000255.html │ │ ├── M000256.html │ │ ├── M000257.html │ │ ├── M000258.html │ │ ├── M000259.html │ │ ├── M000260.html │ │ ├── M000261.html │ │ └── M000262.html │ ├── GamedayParser.html │ ├── GamedayParser.src │ │ ├── M000226.html │ │ ├── M000227.html │ │ ├── M000228.html │ │ ├── M000229.html │ │ ├── M000230.html │ │ ├── M000231.html │ │ └── M000232.html │ ├── GamedayPathBuilder.html │ ├── GamedayRemoteFetcher.html │ ├── GamedayRemoteFetcher.src │ │ ├── M000067.html │ │ ├── M000068.html │ │ ├── M000069.html │ │ ├── M000070.html │ │ ├── M000071.html │ │ ├── M000072.html │ │ ├── M000073.html │ │ ├── M000074.html │ │ ├── M000075.html │ │ ├── M000076.html │ │ ├── M000077.html │ │ ├── M000078.html │ │ ├── M000079.html │ │ ├── M000080.html │ │ ├── M000081.html │ │ ├── M000082.html │ │ ├── M000083.html │ │ ├── M000084.html │ │ ├── M000085.html │ │ ├── M000086.html │ │ ├── M000087.html │ │ ├── M000088.html │ │ ├── M000089.html │ │ ├── M000090.html │ │ ├── M000091.html │ │ ├── M000092.html │ │ ├── M000093.html │ │ ├── M000094.html │ │ ├── M000095.html │ │ ├── M000096.html │ │ └── M000097.html │ ├── GamedayUrlBuilder.html │ ├── GamedayUrlBuilder.src │ │ ├── M000003.html │ │ ├── M000004.html │ │ ├── M000005.html │ │ ├── M000006.html │ │ ├── M000007.html │ │ ├── M000008.html │ │ ├── M000009.html │ │ ├── M000010.html │ │ ├── M000011.html │ │ ├── M000012.html │ │ ├── M000013.html │ │ ├── M000014.html │ │ ├── M000015.html │ │ ├── M000016.html │ │ ├── M000017.html │ │ ├── M000018.html │ │ ├── M000019.html │ │ └── M000020.html │ ├── GamedayUtil.html │ ├── GamedayUtil.src │ │ ├── M000136.html │ │ ├── M000137.html │ │ ├── M000138.html │ │ ├── M000139.html │ │ ├── M000140.html │ │ ├── M000141.html │ │ ├── M000142.html │ │ ├── M000143.html │ │ └── M000144.html │ ├── Hip.html │ ├── Hip.src │ │ └── M000129.html │ ├── Hitchart.html │ ├── Hitchart.src │ │ ├── M000001.html │ │ └── M000002.html │ ├── Inning.html │ ├── Inning.src │ │ └── M000188.html │ ├── LineScore.html │ ├── LineScore.src │ │ ├── M000065.html │ │ └── M000066.html │ ├── Media.html │ ├── Media.src │ │ └── M000221.html │ ├── MediaHighlight.html │ ├── MediaHighlight.src │ │ └── M000225.html │ ├── MediaMobile.html │ ├── MediaMobile.src │ │ └── M000164.html │ ├── OpponentStats.html │ ├── OpponentStats.src │ │ └── M000098.html │ ├── Pitch.html │ ├── Pitch.src │ │ ├── M000127.html │ │ └── M000128.html │ ├── Pitcher.html │ ├── Pitcher.src │ │ ├── M000158.html │ │ ├── M000159.html │ │ ├── M000160.html │ │ ├── M000161.html │ │ ├── M000162.html │ │ └── M000163.html │ ├── PitchingAppearance.html │ ├── PitchingAppearance.src │ │ ├── M000151.html │ │ ├── M000152.html │ │ ├── M000153.html │ │ ├── M000154.html │ │ ├── M000155.html │ │ ├── M000156.html │ │ └── M000157.html │ ├── Player.html │ ├── Player.src │ │ ├── M000058.html │ │ ├── M000059.html │ │ ├── M000060.html │ │ ├── M000061.html │ │ ├── M000062.html │ │ ├── M000063.html │ │ └── M000064.html │ ├── Players.html │ ├── Players.src │ │ ├── M000186.html │ │ └── M000187.html │ ├── Roster.html │ ├── Roster.src │ │ ├── M000122.html │ │ ├── M000123.html │ │ ├── M000124.html │ │ ├── M000125.html │ │ └── M000126.html │ ├── Schedule.html │ ├── Schedule.src │ │ ├── M000131.html │ │ ├── M000132.html │ │ ├── M000133.html │ │ ├── M000134.html │ │ └── M000135.html │ ├── ScheduleGame.html │ ├── ScheduleGame.src │ │ └── M000224.html │ ├── Scoreboard.html │ ├── Scoreboard.src │ │ └── M000223.html │ ├── Team.html │ └── Team.src │ │ ├── M000166.html │ │ ├── M000167.html │ │ ├── M000168.html │ │ ├── M000169.html │ │ ├── M000170.html │ │ ├── M000171.html │ │ ├── M000172.html │ │ ├── M000173.html │ │ ├── M000174.html │ │ ├── M000175.html │ │ ├── M000176.html │ │ ├── M000177.html │ │ ├── M000178.html │ │ ├── M000179.html │ │ ├── M000180.html │ │ ├── M000181.html │ │ ├── M000182.html │ │ ├── M000183.html │ │ ├── M000184.html │ │ └── M000185.html ├── created.rid ├── files │ └── lib │ │ ├── at_bat_rb.html │ │ ├── batter_rb.html │ │ ├── batting_appearance_rb.html │ │ ├── box_score_rb.html │ │ ├── boxscore_html_erb.html │ │ ├── cache_fetcher_rb.html │ │ ├── coach_rb.html │ │ ├── data_downloader_rb.html │ │ ├── event_log_rb.html │ │ ├── event_rb.html │ │ ├── eventlog_html_erb.html │ │ ├── game_rb.html │ │ ├── game_status_rb.html │ │ ├── gameday_config_yml.html │ │ ├── gameday_fetcher_rb.html │ │ ├── gameday_local_fetcher_rb.html │ │ ├── gameday_parser_rb.html │ │ ├── gameday_path_builder_rb.html │ │ ├── gameday_rb.html │ │ ├── gameday_remote_fetcher_rb.html │ │ ├── gameday_url_builder_rb.html │ │ ├── gameday_util_rb.html │ │ ├── hip_rb.html │ │ ├── hitchart_rb.html │ │ ├── inning_rb.html │ │ ├── line_score_rb.html │ │ ├── media_highlight_rb.html │ │ ├── media_mobile_rb.html │ │ ├── media_rb.html │ │ ├── pitch_rb.html │ │ ├── pitcher_rb.html │ │ ├── pitching_appearance_rb.html │ │ ├── player_rb.html │ │ ├── players_rb.html │ │ ├── roster_rb.html │ │ ├── schedule_game_rb.html │ │ ├── schedule_rb.html │ │ ├── scoreboard_rb.html │ │ └── team_rb.html ├── fr_class_index.html ├── fr_file_index.html ├── fr_method_index.html ├── index.html ├── logo.png └── rdoc-style.css ├── gameday_api.gemspec ├── lib ├── gameday_api.rb └── gameday_api │ ├── .DS_Store │ ├── at_bat.rb │ ├── batter.rb │ ├── batting_appearance.rb │ ├── box_score.rb │ ├── boxscore.html.erb │ ├── cache_fetcher.rb │ ├── coach.rb │ ├── data_downloader.rb │ ├── db_importer.rb │ ├── event.rb │ ├── event_log.rb │ ├── eventlog.html.erb │ ├── game.rb │ ├── game_status.rb │ ├── gameday.rb │ ├── gameday_config.yml │ ├── gameday_fetcher.rb │ ├── gameday_local_fetcher.rb │ ├── gameday_parser.rb │ ├── gameday_path_builder.rb │ ├── gameday_remote_fetcher.rb │ ├── gameday_url_builder.rb │ ├── gameday_util.rb │ ├── hip.rb │ ├── hitchart.rb │ ├── import_data.rb │ ├── inning.rb │ ├── line_score.rb │ ├── media.rb │ ├── media_highlight.rb │ ├── media_mobile.rb │ ├── pitch.rb │ ├── pitcher.rb │ ├── pitchfx_db_manager.rb │ ├── pitching_appearance.rb │ ├── pitching_line.rb │ ├── player.rb │ ├── players.rb │ ├── roster.rb │ ├── schedule.rb │ ├── schedule_game.rb │ ├── schedules │ ├── 1877SKED.TXT │ ├── 1878SKED.TXT │ ├── 1879SKED.TXT │ ├── 1880SKED.TXT │ ├── 1881SKED.TXT │ ├── 1882SKED.TXT │ ├── 1883SKED.TXT │ ├── 1884SKED.TXT │ ├── 1885SKED.TXT │ ├── 1886SKED.TXT │ ├── 1887SKED.TXT │ ├── 1888SKED.TXT │ ├── 1889SKED.TXT │ ├── 1890SKED.TXT │ ├── 1891SKED.TXT │ ├── 1892SKED.TXT │ ├── 1893SKED.TXT │ ├── 1894SKED.TXT │ ├── 1895SKED.TXT │ ├── 1896SKED.TXT │ ├── 1897SKED.TXT │ ├── 1898SKED.TXT │ ├── 1899SKED.TXT │ ├── 1900SKED.TXT │ ├── 1901SKED.TXT │ ├── 1902SKED.TXT │ ├── 1903SKED.TXT │ ├── 1904SKED.TXT │ ├── 1905SKED.TXT │ ├── 1906SKED.TXT │ ├── 1907SKED.TXT │ ├── 1908SKED.TXT │ ├── 1909SKED.TXT │ ├── 1910SKED.TXT │ ├── 1911SKED.TXT │ ├── 1912SKED.TXT │ ├── 1913SKED.TXT │ ├── 1914SKED.TXT │ ├── 1915SKED.TXT │ ├── 1916SKED.TXT │ ├── 1917SKED.TXT │ ├── 1918SKED.TXT │ ├── 1919SKED.TXT │ ├── 1920SKED.TXT │ ├── 1921SKED.TXT │ ├── 1922SKED.TXT │ ├── 1923SKED.TXT │ ├── 1924SKED.TXT │ ├── 1925SKED.TXT │ ├── 1926SKED.TXT │ ├── 1927SKED.TXT │ ├── 1928SKED.TXT │ ├── 1929SKED.TXT │ ├── 1930SKED.TXT │ ├── 1931SKED.TXT │ ├── 1932SKED.TXT │ ├── 1933SKED.TXT │ ├── 1934SKED.TXT │ ├── 1935SKED.TXT │ ├── 1936SKED.TXT │ ├── 1937SKED.TXT │ ├── 1938SKED.TXT │ ├── 1939SKED.TXT │ ├── 1940SKED.TXT │ ├── 1941SKED.TXT │ ├── 1942SKED.TXT │ ├── 1943SKED.TXT │ ├── 1944SKED.TXT │ ├── 1945SKED.TXT │ ├── 1946SKED.TXT │ ├── 1947SKED.TXT │ ├── 1948SKED.TXT │ ├── 1949SKED.TXT │ ├── 1950SKED.TXT │ ├── 1951SKED.TXT │ ├── 1952SKED.TXT │ ├── 1953SKED.TXT │ ├── 1954SKED.TXT │ ├── 1955SKED.TXT │ ├── 1956SKED.TXT │ ├── 1957SKED.TXT │ ├── 1958SKED.TXT │ ├── 1959SKED.TXT │ ├── 1960SKED.TXT │ ├── 1961SKED.TXT │ ├── 1962SKED.TXT │ ├── 1963SKED.TXT │ ├── 1964SKED.TXT │ ├── 1965SKED.TXT │ ├── 1966SKED.TXT │ ├── 1967SKED.TXT │ ├── 1968SKED.TXT │ ├── 1969SKED.TXT │ ├── 1970SKED.TXT │ ├── 1971SKED.TXT │ ├── 1972SKED.TXT │ ├── 1973SKED.TXT │ ├── 1974SKED.TXT │ ├── 1975SKED.TXT │ ├── 1976SKED.TXT │ ├── 1977SKED.TXT │ ├── 1978SKED.TXT │ ├── 1979SKED.TXT │ ├── 1980SKED.TXT │ ├── 1981SKED.TXT │ ├── 1982SKED.TXT │ ├── 1983SKED.TXT │ ├── 1984SKED.TXT │ ├── 1985SKED.TXT │ ├── 1986SKED.TXT │ ├── 1987SKED.TXT │ ├── 1988SKED.TXT │ ├── 1989SKED.TXT │ ├── 1990SKED.TXT │ ├── 1991SKED.TXT │ ├── 1992SKED.TXT │ ├── 1993SKED.TXT │ ├── 1994SKED.TXT │ ├── 1995SKED.TXT │ ├── 1996SKED.TXT │ ├── 1997SKED.TXT │ ├── 1998SKED.TXT │ ├── 1999SKED.TXT │ ├── 2000SKED.TXT │ ├── 2001SKED.TXT │ ├── 2002SKED.TXT │ ├── 2003SKED.TXT │ ├── 2004SKED.TXT │ ├── 2005SKED.TXT │ ├── 2006SKED.TXT │ ├── 2007SKED.TXT │ ├── 2008SKED.TXT │ ├── 2009SKED.TXT │ └── 2010SKED.TXT │ ├── scoreboard.rb │ ├── team.rb │ └── version.rb ├── pkg ├── gameday_api-0.1.0.gem └── gameday_api-0.2.0.gem ├── sample_data ├── batters │ ├── 115229.xml │ ├── 150035.xml │ └── 461834.xml ├── boxscore.xml ├── eventLog.xml ├── game.xml ├── gameday.html ├── inning │ ├── inning_1.xml │ ├── inning_5.xml │ ├── inning_9.xml │ ├── inning_Scores.xml │ └── inning_hit.xml ├── pbp │ ├── batters │ │ ├── 120044.xml │ │ ├── 421124.xml │ │ └── 457133.xml │ └── pitchers │ │ ├── 132220.xml │ │ ├── 458250.xml │ │ └── 547820.xml ├── pitchers │ ├── 124604.xml │ ├── 444382.xml │ └── 465657.xml └── players.xml └── test ├── README ├── boxscore.html ├── test_all_closing_pitchers_for_detroit.rb ├── test_all_starting_pitchers_for_detroit.rb ├── test_boxscore_dump.rb ├── test_get_all_appearances_for_granderson.rb ├── test_get_all_appearances_for_robertson.rb ├── test_get_team_game.rb ├── test_import_tigers_pitchfx_to_db.rb ├── test_leadoff_and_cleanup_hitters.rb ├── test_print_batters_for_game.rb ├── test_print_linescores_for_day.rb ├── test_print_pitchers_for_game.rb ├── test_print_player_card.rb ├── test_show_home_roster.rb ├── test_show_pitch_stats_for_game.rb ├── test_show_scoreboard.rb ├── test_unique_starters.rb └── unit_tests ├── all_tests.rb ├── long_running ├── all_long_running.rb ├── test_batter.rb ├── test_pitcher.rb ├── test_player.rb └── test_team.rb ├── test_batter.rb ├── test_batting_appearance.rb ├── test_boxscore.rb ├── test_event_log.rb ├── test_file.dat ├── test_game.rb ├── test_gameday_fetcher.rb ├── test_gameday_url_builder.rb ├── test_gameday_util.rb ├── test_inning.rb ├── test_media.rb ├── test_pitch.rb ├── test_pitcher.rb ├── test_pitching_appearance.rb ├── test_player.rb ├── test_roster.rb └── test_team.rb /.gitignore: -------------------------------------------------------------------------------- 1 | .svn 2 | lib/tmp/**/* 3 | -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- 1 | source 'https://rubygems.org' 2 | 3 | # Specify your gem's dependencies in gameday_api.gemspec 4 | gemspec 5 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2012 Timothy Fisher 2 | 3 | MIT License 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining 6 | a copy of this software and associated documentation files (the 7 | "Software"), to deal in the Software without restriction, including 8 | without limitation the rights to use, copy, modify, merge, publish, 9 | distribute, sublicense, and/or sell copies of the Software, and to 10 | permit persons to whom the Software is furnished to do so, subject to 11 | the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 20 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 21 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 22 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # GamedayApi 2 | Be sure to checkout my more recent [IMPLEMENTATION IN NODE.JS](https://github.com/timothyf/gameday_api_node) 3 | 4 | ## Installation 5 | 6 | Add this line to your application's Gemfile: 7 | 8 | gem 'gameday_api' 9 | 10 | And then execute: 11 | 12 | $ bundle 13 | 14 | Or install it yourself as: 15 | 16 | $ gem install gameday_api 17 | 18 | ## Usage 19 | 20 | TODO: Write usage instructions here 21 | 22 | ## Contributing 23 | 24 | 1. Fork it 25 | 2. Create your feature branch (`git checkout -b my-new-feature`) 26 | 3. Commit your changes (`git commit -am 'Added some feature'`) 27 | 4. Push to the branch (`git push origin my-new-feature`) 28 | 5. Create new Pull Request 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env rake 2 | require "bundler/gem_tasks" 3 | -------------------------------------------------------------------------------- /doc/classes/BattingAppearance.src/M000219.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 |
8 |# File lib/batting_appearance.rb, line 39 14 | def get_player 15 | if !self.player 16 | # retrieve player object 17 | player = Player.new 18 | player.init() 19 | self.player = player 20 | end 21 | self.player 22 | end23 | 24 | -------------------------------------------------------------------------------- /doc/classes/BattingAppearance.src/M000220.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/batting_appearance.rb, line 51 14 | def get_atbats 15 | 16 | end17 | 18 | -------------------------------------------------------------------------------- /doc/classes/BoxScore.src/M000053.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/box_score.rb, line 46 14 | def dump_to_file 15 | GamedayUtil.save_file("boxscore.html", to_html('boxscore.html.erb')) 16 | end17 | 18 | -------------------------------------------------------------------------------- /doc/classes/BoxScore.src/M000055.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/box_score.rb, line 63 14 | def get_leadoff_hitters 15 | find_hitters("batter") 16 | end17 | 18 | -------------------------------------------------------------------------------- /doc/classes/BoxScore.src/M000056.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/box_score.rb, line 71 14 | def get_cleanup_hitters 15 | find_hitters("batter[@bo='400']") 16 | end17 | 18 | -------------------------------------------------------------------------------- /doc/classes/CacheFetcher.src/M000145.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/cache_fetcher.rb, line 6 14 | def initialize(cache_dir=File.expand_path(File.dirname(__FILE__)) + '/tmp') 15 | # this is the dir where we store our cache 16 | @cache_dir = cache_dir 17 | end18 | 19 | -------------------------------------------------------------------------------- /doc/classes/DataDownloader.src/M000099.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/data_downloader.rb, line 19 14 | def download_all_for_game(gid) 15 | download_xml_for_game(gid) 16 | download_batters_for_game(gid) 17 | download_inning_for_game(gid) 18 | download_media_for_game(gid) 19 | download_notification_for_game(gid) 20 | download_onbase_for_game(gid) 21 | download_pitchers_for_game(gid) 22 | end23 | 24 | -------------------------------------------------------------------------------- /doc/classes/DataDownloader.src/M000111.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/data_downloader.rb, line 186 14 | def tmp_fetch_pages_for_game(gid) 15 | write_file(get_gid_path(gid) + "/batters.html", GamedayFetcher.fetch_batters_page(gid)) 16 | write_file(get_gid_path(gid) + "/pitchers.html", GamedayFetcher.fetch_pitchers_page(gid)) 17 | end18 | 19 | -------------------------------------------------------------------------------- /doc/classes/EventLog.src/M000118.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/event_log.rb, line 71 14 | def dump 15 | (1..@max_inning).each do |inning| 16 | dump_inning(inning.to_s) 17 | end 18 | end19 | 20 | -------------------------------------------------------------------------------- /doc/classes/EventLog.src/M000120.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/event_log.rb, line 88 14 | def dump_to_file 15 | GamedayUtil.save_file("eventlog.html", self.to_html('eventlog.html.erb')) 16 | end17 | 18 | -------------------------------------------------------------------------------- /doc/classes/Game.src/M000192.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/game.rb, line 126 14 | def set_innings(element) 15 | element.elements.each("linescore/inning") { |element| 16 | @away_innings << element.attributes['away'] 17 | @home_innings << element.attributes['home'] 18 | } 19 | end20 | 21 | -------------------------------------------------------------------------------- /doc/classes/Game.src/M000198.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/game.rb, line 225 14 | def get_rosters 15 | if !self.rosters 16 | players = Players.new 17 | players.load_from_id(self.gid) 18 | self.rosters = players.rosters 19 | end 20 | self.rosters 21 | end22 | 23 | -------------------------------------------------------------------------------- /doc/classes/Game.src/M000199.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/game.rb, line 235 14 | def get_eventlog 15 | if !@eventlog 16 | @eventlog = EventLog.new 17 | @eventlog.load_from_id(@gid) 18 | end 19 | @eventlog 20 | end21 | 22 | -------------------------------------------------------------------------------- /doc/classes/Game.src/M000200.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/game.rb, line 245 14 | def get_boxscore 15 | if !@boxscore 16 | box = BoxScore.new 17 | box.load_from_id(self.gid) 18 | @boxscore = box 19 | end 20 | @boxscore 21 | end22 | 23 | -------------------------------------------------------------------------------- /doc/classes/Game.src/M000201.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/game.rb, line 256 14 | def dump_boxscore 15 | if self.gid 16 | bs = get_boxscore 17 | GamedayUtil.save_file("boxscore.html", bs.to_html('boxscore.html.erb')) 18 | else 19 | puts "No data for input specified" 20 | end 21 | end22 | 23 | -------------------------------------------------------------------------------- /doc/classes/Game.src/M000203.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/game.rb, line 285 14 | def get_starting_pitchers 15 | results = [] 16 | results << get_pitchers('away')[0] 17 | results << get_pitchers('home')[0] 18 | end19 | 20 | -------------------------------------------------------------------------------- /doc/classes/Game.src/M000208.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/game.rb, line 353 14 | def get_lineups 15 | results = [] 16 | results << get_batters('away') 17 | results << get_batters('home') 18 | end19 | 20 | -------------------------------------------------------------------------------- /doc/classes/Game.src/M000209.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/game.rb, line 363 14 | def get_pitching 15 | results = [] 16 | results << get_pitchers('away') 17 | results << get_pitchers('home') 18 | end19 | 20 | -------------------------------------------------------------------------------- /doc/classes/Game.src/M000210.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/game.rb, line 371 14 | def get_winner 15 | ls = get_boxscore.linescore 16 | if ls.home_team_runs > ls.away_team_runs 17 | return home_team_abbrev 18 | else 19 | return visit_team_abbrev 20 | end 21 | end22 | 23 | -------------------------------------------------------------------------------- /doc/classes/Game.src/M000211.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/game.rb, line 384 14 | def get_score 15 | results = [] 16 | ls = get_boxscore.linescore 17 | results << ls.away_team_runs 18 | results << ls.home_team_runs 19 | results 20 | end21 | 22 | -------------------------------------------------------------------------------- /doc/classes/Game.src/M000212.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/game.rb, line 394 14 | def get_attendance 15 | game_info = get_boxscore.game_info 16 | # parse game_info to get attendance 17 | game_info[game_info.length-12..game_info.length-7] 18 | end19 | 20 | -------------------------------------------------------------------------------- /doc/classes/Game.src/M000213.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/game.rb, line 401 14 | def get_media 15 | if !@media 16 | @media = Media.new 17 | @media.load_from_id(@gid) 18 | end 19 | @media 20 | end21 | 22 | -------------------------------------------------------------------------------- /doc/classes/Game.src/M000216.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/game.rb, line 440 14 | def get_hitchart 15 | if !@hitchart 16 | @hitchart = Hitchart.new 17 | @hitchart.load_from_gid(@gid) 18 | end 19 | @hitchart 20 | end21 | 22 | -------------------------------------------------------------------------------- /doc/classes/Game.src/M000217.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/game.rb, line 450 14 | def get_num_innings 15 | bs = get_boxscore 16 | if bs.linescore 17 | return get_boxscore.linescore.innings.length 18 | else 19 | return 0 20 | end 21 | end22 | 23 | -------------------------------------------------------------------------------- /doc/classes/Gameday.src/M000263.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday.rb, line 16 14 | def initialize 15 | super 16 | end17 | 18 | -------------------------------------------------------------------------------- /doc/classes/Gameday.src/M000265.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday.rb, line 47 14 | def convert_to_two_digit_str(number) 15 | if number < 10 16 | return '0'+number.to_s 17 | else 18 | return number.to_s 19 | end 20 | end21 | 22 | -------------------------------------------------------------------------------- /doc/classes/GamedayFetcher.src/M000021.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_fetcher.rb, line 57 14 | def self.fetcher 15 | GamedayRemoteFetcher 16 | #GamedayLocalFetcher 17 | end18 | 19 | -------------------------------------------------------------------------------- /doc/classes/GamedayFetcher.src/M000022.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_fetcher.rb, line 63 14 | def self.fetch_epg(year, month, day) 15 | fetcher.fetch_epg(year, month, day) 16 | end17 | 18 | -------------------------------------------------------------------------------- /doc/classes/GamedayFetcher.src/M000023.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_fetcher.rb, line 70 14 | def self.fetch_scoreboard(year, month, day) 15 | fetcher.fetch_scoreboard(year, month, day) 16 | end17 | 18 | -------------------------------------------------------------------------------- /doc/classes/GamedayFetcher.src/M000024.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_fetcher.rb, line 75 14 | def self.fetch_day_highlights(year, month, day) 15 | fetcher.fetch_day_highlights(year, month, day) 16 | end17 | 18 | -------------------------------------------------------------------------------- /doc/classes/GamedayFetcher.src/M000025.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_fetcher.rb, line 82 14 | def self.fetch_bench(gid) 15 | fetcher.fetch_bench(gid) 16 | end17 | 18 | -------------------------------------------------------------------------------- /doc/classes/GamedayFetcher.src/M000026.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_fetcher.rb, line 89 14 | def self.fetch_bencho(gid) 15 | fetcher.fetch_bencho(gid) 16 | end17 | 18 | -------------------------------------------------------------------------------- /doc/classes/GamedayFetcher.src/M000027.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_fetcher.rb, line 96 14 | def self.fetch_boxscore(gid) 15 | fetcher.fetch_boxscore(gid) 16 | end17 | 18 | -------------------------------------------------------------------------------- /doc/classes/GamedayFetcher.src/M000028.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_fetcher.rb, line 103 14 | def self.fetch_emailsource(gid) 15 | fetcher.fetch_emailsource(gid) 16 | end17 | 18 | -------------------------------------------------------------------------------- /doc/classes/GamedayFetcher.src/M000029.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_fetcher.rb, line 110 14 | def self.fetch_eventlog(gid) 15 | fetcher.fetch_eventlog(gid) 16 | end17 | 18 | -------------------------------------------------------------------------------- /doc/classes/GamedayFetcher.src/M000030.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_fetcher.rb, line 116 14 | def self.fetch_game_xml(gid) 15 | fetcher.fetch_game_xml(gid) 16 | end17 | 18 | -------------------------------------------------------------------------------- /doc/classes/GamedayFetcher.src/M000031.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_fetcher.rb, line 121 14 | def self.fetch_game_events(gid) 15 | fetcher.fetch_game_events(gid) 16 | end17 | 18 | -------------------------------------------------------------------------------- /doc/classes/GamedayFetcher.src/M000032.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_fetcher.rb, line 127 14 | def self.fetch_gamecenter_xml(gid) 15 | fetcher.fetch_gamecenter_xml(gid) 16 | end17 | 18 | -------------------------------------------------------------------------------- /doc/classes/GamedayFetcher.src/M000033.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_fetcher.rb, line 134 14 | def self.fetch_gamedaysyn(gid) 15 | fetcher.fetch_gamedaysyn(gid) 16 | end17 | 18 | -------------------------------------------------------------------------------- /doc/classes/GamedayFetcher.src/M000034.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_fetcher.rb, line 141 14 | def self.fetch_linescore(gid) 15 | fetcher.fetch_linescore(gid) 16 | end17 | 18 | -------------------------------------------------------------------------------- /doc/classes/GamedayFetcher.src/M000035.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_fetcher.rb, line 148 14 | def self.fetch_miniscoreboard(gid) 15 | fetcher.fetch_miniscoreboard(gid) 16 | end17 | 18 | -------------------------------------------------------------------------------- /doc/classes/GamedayFetcher.src/M000036.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_fetcher.rb, line 154 14 | def self.fetch_players(gid) 15 | fetcher.fetch_players(gid) 16 | end17 | 18 | -------------------------------------------------------------------------------- /doc/classes/GamedayFetcher.src/M000037.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_fetcher.rb, line 161 14 | def self.fetch_plays(gid) 15 | fetcher.fetch_plays(gid) 16 | end17 | 18 | -------------------------------------------------------------------------------- /doc/classes/GamedayFetcher.src/M000038.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_fetcher.rb, line 167 14 | def self.fetch_batter(gid, pid) 15 | fetcher.fetch_batter(gid, pid) 16 | end17 | 18 | -------------------------------------------------------------------------------- /doc/classes/GamedayFetcher.src/M000039.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_fetcher.rb, line 173 14 | def self.fetch_pitcher(gid, pid) 15 | fetcher.fetch_pitcher(gid, pid) 16 | end17 | 18 | -------------------------------------------------------------------------------- /doc/classes/GamedayFetcher.src/M000040.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_fetcher.rb, line 178 14 | def self.fetch_inningx(gid, inning_num) 15 | fetcher.fetch_inningx(gid, inning_num) 16 | end17 | 18 | -------------------------------------------------------------------------------- /doc/classes/GamedayFetcher.src/M000041.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_fetcher.rb, line 184 14 | def self.fetch_inning_scores(gid) 15 | fetcher.fetch_inning_scores(gid) 16 | end17 | 18 | -------------------------------------------------------------------------------- /doc/classes/GamedayFetcher.src/M000042.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_fetcher.rb, line 190 14 | def self.fetch_inning_hit(gid) 15 | fetcher.fetch_inning_hit(gid) 16 | end17 | 18 | -------------------------------------------------------------------------------- /doc/classes/GamedayFetcher.src/M000043.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_fetcher.rb, line 196 14 | def self.fetch_games_page(year, month, day) 15 | fetcher.fetch_games_page(year, month, day) 16 | end17 | 18 | -------------------------------------------------------------------------------- /doc/classes/GamedayFetcher.src/M000044.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_fetcher.rb, line 202 14 | def self.fetch_batters_page(gid) 15 | fetcher.fetch_batters_page(gid) 16 | end17 | 18 | -------------------------------------------------------------------------------- /doc/classes/GamedayFetcher.src/M000045.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_fetcher.rb, line 208 14 | def self.fetch_pitchers_page(gid) 15 | fetcher.fetch_pitchers_page(gid) 16 | end17 | 18 | -------------------------------------------------------------------------------- /doc/classes/GamedayFetcher.src/M000046.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_fetcher.rb, line 213 14 | def self.fetch_media_highlights(gid) 15 | fetcher.fetch_media_highlights(gid) 16 | end17 | 18 | -------------------------------------------------------------------------------- /doc/classes/GamedayFetcher.src/M000047.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_fetcher.rb, line 218 14 | def self.fetch_media_mobile(gid) 15 | fetcher.fetch_media_mobile(gid) 16 | end17 | 18 | -------------------------------------------------------------------------------- /doc/classes/GamedayFetcher.src/M000048.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_fetcher.rb, line 223 14 | def self.fetch_onbase_linescore(gid) 15 | fetcher.fetch_onbase_linescore(gid) 16 | end17 | 18 | -------------------------------------------------------------------------------- /doc/classes/GamedayFetcher.src/M000049.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_fetcher.rb, line 228 14 | def self.fetch_onbase_plays(gid) 15 | fetcher.fetch_onbase_plays(gid) 16 | end17 | 18 | -------------------------------------------------------------------------------- /doc/classes/GamedayFetcher.src/M000050.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_fetcher.rb, line 233 14 | def self.fetch_notifications_inning(gid, inning) 15 | fetcher.fetch_notifications_inning(gid, inning) 16 | end17 | 18 | -------------------------------------------------------------------------------- /doc/classes/GamedayFetcher.src/M000051.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_fetcher.rb, line 238 14 | def self.fetch_notifications_full(gid) 15 | fetcher.fetch_notifications_full(gid) 16 | end17 | 18 | -------------------------------------------------------------------------------- /doc/classes/GamedayLocalFetcher.src/M000233.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_local_fetcher.rb, line 12 14 | def self.fetch_epg(year, month, day) 15 | path = GamedayPathBuilder.build_epg_path(year, month, day) 16 | GamedayUtil.read_file(path) 17 | end18 | 19 | -------------------------------------------------------------------------------- /doc/classes/GamedayLocalFetcher.src/M000234.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_local_fetcher.rb, line 20 14 | def self.fetch_scoreboard(year, month, day) 15 | path = GamedayPathBuilder.build_scoreboard_path(year, month, day) 16 | GamedayUtil.read_file(path) 17 | end18 | 19 | -------------------------------------------------------------------------------- /doc/classes/GamedayLocalFetcher.src/M000235.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_local_fetcher.rb, line 26 14 | def self.fetch_day_highlights(year, month, day) 15 | path = GamedayPathBuilder.build_day_highlights_path(year, month, day) 16 | GamedayUtil.read_file(path) 17 | end18 | 19 | -------------------------------------------------------------------------------- /doc/classes/GamedayLocalFetcher.src/M000236.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_local_fetcher.rb, line 34 14 | def self.fetch_bench(gid) 15 | path = GamedayPathBuilder.build_game_base_path(gid) + '/bench.xml' 16 | GamedayUtil.read_file(path) 17 | end18 | 19 | -------------------------------------------------------------------------------- /doc/classes/GamedayLocalFetcher.src/M000237.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_local_fetcher.rb, line 42 14 | def self.fetch_bencho(gid) 15 | path = GamedayPathBuilder.build_game_base_path(gid) + '/benchO.xml' 16 | GamedayUtil.read_file(path) 17 | end18 | 19 | -------------------------------------------------------------------------------- /doc/classes/GamedayLocalFetcher.src/M000239.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_local_fetcher.rb, line 59 14 | def self.fetch_emailsource(gid) 15 | path = GamedayPathBuilder.build_game_base_path(gid) + '/emailSource.xml' 16 | GamedayUtil.read_file(path) 17 | end18 | 19 | -------------------------------------------------------------------------------- /doc/classes/GamedayLocalFetcher.src/M000244.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_local_fetcher.rb, line 99 14 | def self.fetch_gamedaysyn(gid) 15 | path = GamedayPathBuilder.build_game_base_path(gid) + '/gameday_Syn.xml' 16 | GamedayUtil.read_file(path) 17 | end18 | 19 | -------------------------------------------------------------------------------- /doc/classes/GamedayLocalFetcher.src/M000246.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_local_fetcher.rb, line 116 14 | def self.fetch_miniscoreboard(gid) 15 | path = GamedayPathBuilder.build_game_base_path(gid) + '/miniscoreboard.xml' 16 | GamedayUtil.read_file(path) 17 | end18 | 19 | -------------------------------------------------------------------------------- /doc/classes/GamedayLocalFetcher.src/M000248.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_local_fetcher.rb, line 132 14 | def self.fetch_plays(gid) 15 | path = GamedayPathBuilder.build_game_base_path(gid) + '/plays.xml' 16 | GamedayUtil.read_file(path) 17 | end18 | 19 | -------------------------------------------------------------------------------- /doc/classes/GamedayLocalFetcher.src/M000254.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_local_fetcher.rb, line 178 14 | def self.fetch_games_page(year, month, day) 15 | path = GamedayPathBuilder.build_day_path(year, month, day) + '/games.html' 16 | GamedayUtil.read_file(path) 17 | end18 | 19 | -------------------------------------------------------------------------------- /doc/classes/GamedayLocalFetcher.src/M000255.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_local_fetcher.rb, line 185 14 | def self.fetch_batters_page(gid) 15 | path = GamedayPathBuilder.build_game_base_path(gid) + '/batters.html' 16 | GamedayUtil.read_file(path) 17 | end18 | 19 | -------------------------------------------------------------------------------- /doc/classes/GamedayLocalFetcher.src/M000256.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_local_fetcher.rb, line 192 14 | def self.fetch_pitchers_page(gid) 15 | path = GamedayPathBuilder.build_game_base_path(gid) + '/pitchers.html' 16 | GamedayUtil.read_file(path) 17 | end18 | 19 | -------------------------------------------------------------------------------- /doc/classes/GamedayLocalFetcher.src/M000257.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_local_fetcher.rb, line 198 14 | def self.fetch_media_highlights(gid) 15 | path = GamedayPathBuilder.build_game_base_path(gid) + '/media/highlights.xml' 16 | GamedayUtil.read_file(path) 17 | end18 | 19 | -------------------------------------------------------------------------------- /doc/classes/GamedayLocalFetcher.src/M000258.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_local_fetcher.rb, line 204 14 | def self.fetch_media_mobile(gid) 15 | path = GamedayPathBuilder.build_game_base_path(gid) + '/media/mobile.xml' 16 | GamedayUtil.read_file(path) 17 | end18 | 19 | -------------------------------------------------------------------------------- /doc/classes/GamedayLocalFetcher.src/M000259.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_local_fetcher.rb, line 210 14 | def self.fetch_onbase_linescore(gid) 15 | path = GamedayPathBuilder.build_game_base_path(gid) + '/onbase/linescore.xml' 16 | GamedayUtil.read_file(path) 17 | end18 | 19 | -------------------------------------------------------------------------------- /doc/classes/GamedayLocalFetcher.src/M000260.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_local_fetcher.rb, line 216 14 | def self.fetch_onbase_plays(gid) 15 | path = GamedayPathBuilder.build_game_base_path(gid) + '/onbase/plays.xml' 16 | GamedayUtil.read_file(path) 17 | end18 | 19 | -------------------------------------------------------------------------------- /doc/classes/GamedayLocalFetcher.src/M000261.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_local_fetcher.rb, line 222 14 | def self.fetch_notifications_inning(gid, inning) 15 | path = GamedayPathBuilder.build_game_base_path(gid) + "/notifications/notifications_#{inning}.xml" 16 | GamedayUtil.read_file(path) 17 | end18 | 19 | -------------------------------------------------------------------------------- /doc/classes/GamedayLocalFetcher.src/M000262.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_local_fetcher.rb, line 228 14 | def self.fetch_notifications_full(gid) 15 | path = GamedayPathBuilder.build_game_base_path(gid) + "/notifications/notifications_full.xml" 16 | GamedayUtil.read_file(path) 17 | end18 | 19 | -------------------------------------------------------------------------------- /doc/classes/GamedayRemoteFetcher.src/M000068.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_remote_fetcher.rb, line 18 14 | def self.fetch_epg(year, month, day) 15 | url = GamedayUrlBuilder.build_epg_url(year, month, day) 16 | fetch(url) 17 | end18 | 19 | -------------------------------------------------------------------------------- /doc/classes/GamedayRemoteFetcher.src/M000069.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_remote_fetcher.rb, line 26 14 | def self.fetch_scoreboard(year, month, day) 15 | url = GamedayUrlBuilder.build_scoreboard_url(year, month, day) 16 | fetch(url) 17 | end18 | 19 | -------------------------------------------------------------------------------- /doc/classes/GamedayRemoteFetcher.src/M000070.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_remote_fetcher.rb, line 32 14 | def self.fetch_day_highlights(year, month, day) 15 | url = GamedayUrlBuilder.build_day_highlights_url(year, month, day) 16 | fetch(url) 17 | end18 | 19 | -------------------------------------------------------------------------------- /doc/classes/GamedayRemoteFetcher.src/M000071.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_remote_fetcher.rb, line 40 14 | def self.fetch_bench(gid) 15 | url = GamedayUrlBuilder.build_game_base_url(gid) + '/bench.xml' 16 | fetch(url) 17 | #fetcher = CacheFetcher.new() 18 | #return fetcher.fetch(url) 19 | end20 | 21 | -------------------------------------------------------------------------------- /doc/classes/GamedayRemoteFetcher.src/M000072.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_remote_fetcher.rb, line 50 14 | def self.fetch_bencho(gid) 15 | url = GamedayUrlBuilder.build_game_base_url(gid) + '/benchO.xml' 16 | fetch(url) 17 | #fetcher = CacheFetcher.new() 18 | #return fetcher.fetch(url) 19 | end20 | 21 | -------------------------------------------------------------------------------- /doc/classes/GamedayRemoteFetcher.src/M000074.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_remote_fetcher.rb, line 71 14 | def self.fetch_emailsource(gid) 15 | url = GamedayUrlBuilder.build_game_base_url(gid) + '/emailSource.xml' 16 | fetch(url) 17 | #fetcher = CacheFetcher.new() 18 | #return fetcher.fetch(url) 19 | end20 | 21 | -------------------------------------------------------------------------------- /doc/classes/GamedayRemoteFetcher.src/M000079.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_remote_fetcher.rb, line 119 14 | def self.fetch_gamedaysyn(gid) 15 | url = GamedayUrlBuilder.build_game_base_url(gid) + '/gameday_Syn.xml' 16 | fetch(url) 17 | #fetcher = CacheFetcher.new() 18 | #return fetcher.fetch(url) 19 | end20 | 21 | -------------------------------------------------------------------------------- /doc/classes/GamedayRemoteFetcher.src/M000081.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_remote_fetcher.rb, line 140 14 | def self.fetch_miniscoreboard(gid) 15 | url = GamedayUrlBuilder.build_game_base_url(gid) + '/miniscoreboard.xml' 16 | fetch(url) 17 | #fetcher = CacheFetcher.new() 18 | #return fetcher.fetch(url) 19 | end20 | 21 | -------------------------------------------------------------------------------- /doc/classes/GamedayRemoteFetcher.src/M000083.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_remote_fetcher.rb, line 160 14 | def self.fetch_plays(gid) 15 | url = GamedayUrlBuilder.build_game_base_url(gid) + '/plays.xml' 16 | fetch(url) 17 | #fetcher = CacheFetcher.new() 18 | #return fetcher.fetch(url) 19 | end20 | 21 | -------------------------------------------------------------------------------- /doc/classes/GamedayRemoteFetcher.src/M000089.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_remote_fetcher.rb, line 218 14 | def self.fetch_games_page(year, month, day) 15 | url = GamedayUrlBuilder.build_day_url(year, month, day) 16 | fetch(url) 17 | #fetcher = CacheFetcher.new() 18 | #return fetcher.fetch(url) 19 | end20 | 21 | -------------------------------------------------------------------------------- /doc/classes/GamedayRemoteFetcher.src/M000090.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_remote_fetcher.rb, line 227 14 | def self.fetch_batters_page(gid) 15 | url = GamedayUrlBuilder.build_game_base_url(gid) + '/batters/' 16 | fetch(url) 17 | #fetcher = CacheFetcher.new() 18 | #return fetcher.fetch(url) 19 | end20 | 21 | -------------------------------------------------------------------------------- /doc/classes/GamedayRemoteFetcher.src/M000091.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_remote_fetcher.rb, line 236 14 | def self.fetch_pitchers_page(gid) 15 | url = GamedayUrlBuilder.build_game_base_url(gid) + '/pitchers/' 16 | fetch(url) 17 | #fetcher = CacheFetcher.new() 18 | #return fetcher.fetch(url) 19 | end20 | 21 | -------------------------------------------------------------------------------- /doc/classes/GamedayRemoteFetcher.src/M000092.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_remote_fetcher.rb, line 244 14 | def self.fetch_media_highlights(gid) 15 | url = GamedayUrlBuilder.build_game_base_url(gid) + '/media/highlights.xml' 16 | fetch(url) 17 | #fetcher = CacheFetcher.new() 18 | #return fetcher.fetch(url) 19 | end20 | 21 | -------------------------------------------------------------------------------- /doc/classes/GamedayRemoteFetcher.src/M000093.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_remote_fetcher.rb, line 252 14 | def self.fetch_media_mobile(gid) 15 | url = GamedayUrlBuilder.build_game_base_url(gid) + '/media/mobile.xml' 16 | fetch(url) 17 | #fetcher = CacheFetcher.new() 18 | #return fetcher.fetch(url) 19 | end20 | 21 | -------------------------------------------------------------------------------- /doc/classes/GamedayRemoteFetcher.src/M000094.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_remote_fetcher.rb, line 260 14 | def self.fetch_onbase_linescore(gid) 15 | url = GamedayUrlBuilder.build_game_base_url(gid) + '/onbase/linescore.xml' 16 | fetch(url) 17 | #fetcher = CacheFetcher.new() 18 | #return fetcher.fetch(url) 19 | end20 | 21 | -------------------------------------------------------------------------------- /doc/classes/GamedayRemoteFetcher.src/M000095.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_remote_fetcher.rb, line 268 14 | def self.fetch_onbase_plays(gid) 15 | url = GamedayUrlBuilder.build_game_base_url(gid) + '/onbase/plays.xml' 16 | fetch(url) 17 | #fetcher = CacheFetcher.new() 18 | #return fetcher.fetch(url) 19 | end20 | 21 | -------------------------------------------------------------------------------- /doc/classes/GamedayRemoteFetcher.src/M000096.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_remote_fetcher.rb, line 276 14 | def self.fetch_notifications_inning(gid, inning) 15 | url = GamedayUrlBuilder.build_game_base_url(gid) + "/notifications/notifications_#{inning}.xml" 16 | fetch(url) 17 | #fetcher = CacheFetcher.new() 18 | #return fetcher.fetch(url) 19 | end20 | 21 | -------------------------------------------------------------------------------- /doc/classes/GamedayRemoteFetcher.src/M000097.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_remote_fetcher.rb, line 284 14 | def self.fetch_notifications_full(gid) 15 | url = GamedayUrlBuilder.build_game_base_url(gid) + "/notifications/notifications_full.xml" 16 | fetch(url) 17 | #fetcher = CacheFetcher.new() 18 | #return fetcher.fetch(url) 19 | end20 | 21 | -------------------------------------------------------------------------------- /doc/classes/GamedayUrlBuilder.src/M000019.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_url_builder.rb, line 102 14 | def self.build_day_url(year, month, day) 15 | set_date_vars(year, month, day) 16 | "#{Gameday::GD2_MLB_BASE}/mlb/year_#{@@year}/month_#{@@month}/day_#{@@day}/" 17 | end18 | 19 | -------------------------------------------------------------------------------- /doc/classes/GamedayUrlBuilder.src/M000020.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_url_builder.rb, line 108 14 | def self.build_month_url(year, month) 15 | set_date_vars(year, month, nil) 16 | "#{Gameday::GD2_MLB_BASE}/mlb/year_#{@@year}/month_#{@@month}/" 17 | end18 | 19 | -------------------------------------------------------------------------------- /doc/classes/GamedayUtil.src/M000137.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_util.rb, line 21 14 | def self.convert_digit_to_string(digit) 15 | if digit<10 16 | return '0' + digit.to_s 17 | else 18 | return digit.to_s 19 | end 20 | end21 | 22 | -------------------------------------------------------------------------------- /doc/classes/GamedayUtil.src/M000139.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_util.rb, line 44 14 | def self.read_config 15 | settings = YAML::load_file(File.expand_path(File.dirname(__FILE__) + "/gameday_config.yml")) 16 | #settings = YAML::load_file(File.expand_path('gameday_config.yml')) 17 | set_proxy_info(settings) 18 | end19 | 20 | -------------------------------------------------------------------------------- /doc/classes/GamedayUtil.src/M000142.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_util.rb, line 76 14 | def self.read_file(filename) 15 | 16 | end17 | 18 | -------------------------------------------------------------------------------- /doc/classes/GamedayUtil.src/M000143.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/gameday_util.rb, line 81 14 | def self.save_file(filename, data) 15 | File.open(filename, 'w') {|f| f.write(data) } 16 | end17 | 18 | -------------------------------------------------------------------------------- /doc/classes/Hitchart.src/M000001.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/hitchart.rb, line 8 14 | def initialize 15 | @hips = [] 16 | end17 | 18 | -------------------------------------------------------------------------------- /doc/classes/MediaMobile.src/M000164.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/media_mobile.rb, line 8 14 | def initialize(element) 15 | 16 | end17 | 18 | -------------------------------------------------------------------------------- /doc/classes/Pitcher.src/M000161.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/pitcher.rb, line 59 14 | def get_pitches 15 | results = [] 16 | ab = get_vs_ab 17 | ab.each do |ab| 18 | results << ab.pitches 19 | end 20 | results.flatten 21 | end22 | 23 | -------------------------------------------------------------------------------- /doc/classes/Pitcher.src/M000162.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/pitcher.rb, line 69 14 | def get_game 15 | if !@game 16 | @game = Game.new(@gid) 17 | end 18 | @game 19 | end20 | 21 | -------------------------------------------------------------------------------- /doc/classes/PitchingAppearance.src/M000152.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/pitching_appearance.rb, line 34 14 | def start? 15 | start 16 | end17 | 18 | -------------------------------------------------------------------------------- /doc/classes/PitchingAppearance.src/M000153.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/pitching_appearance.rb, line 41 14 | def quality_start? 15 | if @inn.to_i >= 6 && @r.to_i < 4 16 | return true 17 | end 18 | return false 19 | end20 | 21 | -------------------------------------------------------------------------------- /doc/classes/PitchingAppearance.src/M000155.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/pitching_appearance.rb, line 63 14 | def get_pitches 15 | results = [] 16 | ab = get_vs_ab 17 | ab.each do |ab| 18 | results << ab.pitches 19 | end 20 | results.flatten 21 | end22 | 23 | -------------------------------------------------------------------------------- /doc/classes/PitchingAppearance.src/M000156.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/pitching_appearance.rb, line 73 14 | def pitch_count 15 | get_pitches.length 16 | end17 | 18 | -------------------------------------------------------------------------------- /doc/classes/PitchingAppearance.src/M000157.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/pitching_appearance.rb, line 78 14 | def get_game 15 | if !@game 16 | @game = Game.new(@gid) 17 | end 18 | @game 19 | end20 | 21 | -------------------------------------------------------------------------------- /doc/classes/Player.src/M000062.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/player.rb, line 75 14 | def get_team 15 | if !@team_obj 16 | @team_obj = Team.new(@team_abbrev) 17 | end 18 | @team_obj 19 | end20 | 21 | -------------------------------------------------------------------------------- /doc/classes/Player.src/M000063.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/player.rb, line 85 14 | def get_games_for_season(year) 15 | if !@games 16 | @games = get_team.all_games(year) 17 | end 18 | @games 19 | end20 | 21 | -------------------------------------------------------------------------------- /doc/classes/Roster.src/M000123.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/roster.rb, line 24 14 | def find_player_by_last_name(last_name) 15 | players.each do |player| 16 | if player.last == last_name 17 | return player 18 | end 19 | end 20 | nil 21 | end22 | 23 | -------------------------------------------------------------------------------- /doc/classes/Roster.src/M000124.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/roster.rb, line 34 14 | def find_player_by_id(pid) 15 | players.each do |player| 16 | if player.pid == pid 17 | return player 18 | end 19 | end 20 | nil 21 | end22 | 23 | -------------------------------------------------------------------------------- /doc/classes/Roster.src/M000125.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/roster.rb, line 44 14 | def set_players(element) 15 | element.elements.each("player") { |element| 16 | player = Player.new 17 | player.init(element, gid) 18 | self.players << player 19 | } 20 | end21 | 22 | -------------------------------------------------------------------------------- /doc/classes/Roster.src/M000126.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/roster.rb, line 53 14 | def set_coaches(element) 15 | element.elements.each("coach") { |element| 16 | coach = Coach.new 17 | coach.init(element) 18 | self.coaches << coach 19 | } 20 | end21 | 22 | -------------------------------------------------------------------------------- /doc/classes/Schedule.src/M000131.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/schedule.rb, line 13 14 | def initialize(year) 15 | @games = [] 16 | read_file(get_sked_filename(year)) 17 | end18 | 19 | -------------------------------------------------------------------------------- /doc/classes/Schedule.src/M000132.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/schedule.rb, line 20 14 | def get_opening_day 15 | games[0].date 16 | end17 | 18 | -------------------------------------------------------------------------------- /doc/classes/Schedule.src/M000133.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/schedule.rb, line 26 14 | def get_season_length 15 | games[games.size-1].home_game_number.to_i 16 | end17 | 18 | -------------------------------------------------------------------------------- /doc/classes/Schedule.src/M000134.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/schedule.rb, line 32 14 | def get_sked_filename(year) 15 | #'schedules/' + year.to_s + 'SKED.TXT' 16 | File.expand_path(File.dirname(__FILE__) + '/schedules/' + year.to_s + 'SKED.TXT') 17 | end18 | 19 | -------------------------------------------------------------------------------- /doc/classes/Team.src/M000167.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/team.rb, line 73 14 | def self.teams 15 | @@abrevs 16 | end17 | 18 | -------------------------------------------------------------------------------- /doc/classes/Team.src/M000170.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/team.rb, line 121 14 | def all_home_games(year) 15 | games = all_games(year) 16 | results = games.select {|g| g.home_team_abbrev == @abrev } 17 | end18 | 19 | -------------------------------------------------------------------------------- /doc/classes/Team.src/M000171.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/team.rb, line 128 14 | def all_away_games(year) 15 | games = all_games(year) 16 | results = games.select {|g| g.visit_team_abbrev == @abrev } 17 | end18 | 19 | -------------------------------------------------------------------------------- /doc/classes/Team.src/M000174.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/team.rb, line 165 14 | def get_leadoff_hitters_unique(year) 15 | hitters = get_leadoff_hitters_by_year(year) 16 | h = {} 17 | hitters.each {|hitter| h[hitter.batter_name]=hitter} 18 | h.values 19 | end20 | 21 | -------------------------------------------------------------------------------- /doc/classes/Team.src/M000176.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/team.rb, line 192 14 | def get_cleanup_hitters_unique(year) 15 | hitters = get_cleanup_hitters_by_year(year) 16 | h = {} 17 | hitters.each {|hitter| h[hitter.batter_name]=hitter} 18 | h.values 19 | end20 | 21 | -------------------------------------------------------------------------------- /doc/classes/Team.src/M000178.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/team.rb, line 216 14 | def get_starters_unique(year) 15 | pitchers = get_start_pitcher_appearances_by_year(year) 16 | h = {} 17 | pitchers.each {|pitcher| h[pitcher.pitcher_name]=pitcher} 18 | h.values 19 | end20 | 21 | -------------------------------------------------------------------------------- /doc/classes/Team.src/M000180.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/team.rb, line 240 14 | def get_closers_unique(year) 15 | pitchers = get_close_pitcher_appearances_by_year(year) 16 | h = {} 17 | pitchers.each {|pitcher| h[pitcher.pitcher_name]=pitcher} 18 | h.values 19 | end20 | 21 | -------------------------------------------------------------------------------- /doc/classes/Team.src/M000182.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/team.rb, line 269 14 | def players_for_season(year) 15 | 16 | end17 | 18 | -------------------------------------------------------------------------------- /doc/classes/Team.src/M000183.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 |
# File lib/team.rb, line 275 14 | def get_games_for_month(year, month) 15 | 16 | end17 | 18 | -------------------------------------------------------------------------------- /doc/created.rid: -------------------------------------------------------------------------------- 1 | Wed, 14 Apr 2010 16:20:22 -0400 2 | -------------------------------------------------------------------------------- /doc/index.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 11 | 12 | 13 |