Class: SportsDataApi::Mlb::Game
- Defined in:
- lib/sports_data_api/mlb/game.rb
Instance Method Summary collapse
Methods inherited from JsonData
Constructor Details
This class inherits a constructor from SportsDataApi::JsonData
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 |
#home ⇒ Object
4 5 6 |
# File 'lib/sports_data_api/mlb/game.rb', line 4 def home @home ||= Team.new(game[:home]) end |