Sha256: d1846810a6cc6949a220a9393c0221f4d518a514564cdb32553940f662a0fc7d
Contents?: true
Size: 364 Bytes
Versions: 12
Compression:
Stored size: 364 Bytes
Contents
module SportsDataApi module Mlb class Game < SportsDataApi::JsonData def home @home ||= Team.new(game[:home]) end def away @away ||= Team.new(game[:away]) end def home_team_id @home_team_id ||= home[:id] end def away_team_id @away_team_id ||= away[:id] end end end end
Version data entries
12 entries across 12 versions & 1 rubygems