class SportsDataApi::Mlb::Game
Public Instance Methods
away()
click to toggle source
# File lib/sports_data_api/mlb/game.rb, line 8 def away @away ||= Team.new(game[:away]) end
away_team_id()
click to toggle source
# File lib/sports_data_api/mlb/game.rb, line 16 def away_team_id @away_team_id ||= away[:id] end
home()
click to toggle source
# File lib/sports_data_api/mlb/game.rb, line 4 def home @home ||= Team.new(game[:home]) end
home_team_id()
click to toggle source
# File lib/sports_data_api/mlb/game.rb, line 12 def home_team_id @home_team_id ||= home[:id] end