Class: MLB::PlayerGameStatSplit

Inherits:
Shale::Mapper
  • Object
show all
Defined in:
lib/mlb/player_game_stats.rb

Overview

Represents a player’s stat split for a game

Instance Attribute Summary collapse

Instance Attribute Details

#playerPlayer

Returns the player

Examples:

split.player #=> #<MLB::Player>

Returns:



258
# File 'lib/mlb/player_game_stats.rb', line 258

attribute :player, Player

#statPlayerGameBattingStats, PlayerGamePitchingStats

Returns the batting stats

Examples:

split.stat #=> #<MLB::PlayerGameBattingStats>

Returns:



242
# File 'lib/mlb/player_game_stats.rb', line 242

attribute :stat, Shale::Type::Value

#teamTeam

Returns the team

Examples:

split.team #=> #<MLB::Team>

Returns:

  • (Team)

    the team



250
# File 'lib/mlb/player_game_stats.rb', line 250

attribute :team, Team