Class: MLB::PlayerStat
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- MLB::PlayerStat
- Defined in:
- lib/mlb/player_stat.rb
Overview
Represents a player stat split
Instance Attribute Summary collapse
-
#player ⇒ Player
Returns the player.
-
#position ⇒ Position
Returns the player’s position.
-
#rank ⇒ Integer
Returns the rank in the stat leaderboard.
-
#season ⇒ String
Returns the season for this stat split.
-
#stat ⇒ StatValues
Returns the stat values.
-
#team ⇒ Team
Returns the team.
Instance Attribute Details
#player ⇒ Player
Returns the player
35 |
# File 'lib/mlb/player_stat.rb', line 35 attribute :player, Player |
#position ⇒ Position
Returns the player’s position
59 |
# File 'lib/mlb/player_stat.rb', line 59 attribute :position, Position |
#rank ⇒ Integer
Returns the rank in the stat leaderboard
51 |
# File 'lib/mlb/player_stat.rb', line 51 attribute :rank, Shale::Type::Integer |
#season ⇒ String
Returns the season for this stat split
19 |
# File 'lib/mlb/player_stat.rb', line 19 attribute :season, Shale::Type::String |
#stat ⇒ StatValues
Returns the stat values
27 |
# File 'lib/mlb/player_stat.rb', line 27 attribute :stat, StatValues |