Class: SportsDataApi::Mlb::Game
Instance Method Summary
collapse
Methods inherited from JsonData
#[], #initialize
Instance Method Details
#away ⇒ Object
8
9
10
|
# File 'lib/sports_data_api/mlb/game.rb', line 8
def away
@away ||= Team.new(game[:away])
end
|
#away_team_id ⇒ Object
16
17
18
|
# File 'lib/sports_data_api/mlb/game.rb', line 16
def away_team_id
@away_team_id ||= away[:id]
end
|
#home ⇒ Object
4
5
6
|
# File 'lib/sports_data_api/mlb/game.rb', line 4
def home
@home ||= Team.new(game[:home])
end
|
#home_team_id ⇒ Object
12
13
14
|
# File 'lib/sports_data_api/mlb/game.rb', line 12
def home_team_id
@home_team_id ||= home[:id]
end
|