Class: MLB::LeaderCategory
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- MLB::LeaderCategory
- Defined in:
- lib/mlb/leaders.rb
Overview
Represents a leader category result
Instance Attribute Summary collapse
-
#leader_category ⇒ String
Returns the category name.
-
#leaders ⇒ Array<Leader>
Returns the leaders.
-
#season ⇒ String
Returns the season.
Instance Attribute Details
#leader_category ⇒ String
Returns the category name
13 |
# File 'lib/mlb/leaders.rb', line 13 attribute :leader_category, Shale::Type::String |
#leaders ⇒ Array<Leader>
Returns the leaders
29 |
# File 'lib/mlb/leaders.rb', line 29 attribute :leaders, Leader, collection: true |
#season ⇒ String
Returns the season
21 |
# File 'lib/mlb/leaders.rb', line 21 attribute :season, Shale::Type::String |