Class: MLB::Leader
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- MLB::Leader
- Defined in:
- lib/mlb/leader.rb
Overview
Represents a league leader
Instance Attribute Summary collapse
-
#league ⇒ League
Returns the league.
-
#person ⇒ Player
Returns the player.
-
#rank ⇒ Integer
Returns the leader rank.
-
#season ⇒ String
Returns the season.
-
#sport ⇒ Sport
Returns the sport.
-
#team ⇒ Team
Returns the team.
-
#value ⇒ String
Returns the stat value.
Instance Attribute Details
#league ⇒ League
Returns the league
51 |
# File 'lib/mlb/leader.rb', line 51 attribute :league, League |
#person ⇒ Player
Returns the player
35 |
# File 'lib/mlb/leader.rb', line 35 attribute :person, Player |
#rank ⇒ Integer
Returns the leader rank
19 |
# File 'lib/mlb/leader.rb', line 19 attribute :rank, Shale::Type::Integer |
#season ⇒ String
Returns the season
67 |
# File 'lib/mlb/leader.rb', line 67 attribute :season, Shale::Type::String |
#value ⇒ String
Returns the stat value
27 |
# File 'lib/mlb/leader.rb', line 27 attribute :value, Shale::Type::String |