Class: MLB::DraftYear
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- MLB::DraftYear
- Defined in:
- lib/mlb/draft.rb
Overview
Represents a draft year
Instance Attribute Summary collapse
-
#draft_year ⇒ Integer
Returns the draft year.
-
#rounds ⇒ Array<DraftRound>
Returns the draft rounds.
Instance Attribute Details
#draft_year ⇒ Integer
Returns the draft year
37 |
# File 'lib/mlb/draft.rb', line 37 attribute :draft_year, Shale::Type::Integer |
#rounds ⇒ Array<DraftRound>
Returns the draft rounds
45 |
# File 'lib/mlb/draft.rb', line 45 attribute :rounds, DraftRound, collection: true |