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

Version Path
sports_data_api-0.15.3 lib/sports_data_api/mlb/game.rb
sports_data_api-0.15.2 lib/sports_data_api/mlb/game.rb
sports_data_api-0.15.1 lib/sports_data_api/mlb/game.rb
sports_data_api-0.15.0 lib/sports_data_api/mlb/game.rb
sports_data_api-0.14.1 lib/sports_data_api/mlb/game.rb
sports_data_api-0.14.0 lib/sports_data_api/mlb/game.rb
sports_data_api-0.13.0 lib/sports_data_api/mlb/game.rb
sports_data_api-0.12.1 lib/sports_data_api/mlb/game.rb
sports_data_api-0.12.0 lib/sports_data_api/mlb/game.rb
sports_data_api-0.11.6 lib/sports_data_api/mlb/game.rb
sports_data_api-0.11.5 lib/sports_data_api/mlb/game.rb
sports_data_api-0.11.3 lib/sports_data_api/mlb/game.rb