Class: MLB::DraftRound

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

Overview

Represents a round in the draft

Instance Attribute Summary collapse

Instance Attribute Details

#picksArray<DraftPick>

Returns the picks in this round

Examples:

round.picks #=> [#<MLB::DraftPick>, ...]

Returns:



21
# File 'lib/mlb/draft.rb', line 21

attribute :picks, DraftPick, collection: true

#roundString

Returns the round number

Examples:

round.round #=> "1"

Returns:

  • (String)

    the round



13
# File 'lib/mlb/draft.rb', line 13

attribute :round, Shale::Type::String