Class: MLB::DraftPick

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

Overview

Represents a draft pick

Instance Attribute Summary collapse

Instance Attribute Details

#blurbString

Returns the scouting report blurb

Examples:

pick.blurb #=> "A native of Sydney..."

Returns:

  • (String)

    the blurb



140
# File 'lib/mlb/draft_pick.rb', line 140

attribute :blurb, Shale::Type::String

#personPlayer

Returns the drafted player

Examples:

pick.person #=> #<MLB::Player>

Returns:



116
# File 'lib/mlb/draft_pick.rb', line 116

attribute :person, Player

#pick_numberInteger

Returns the overall pick number

Examples:

pick.pick_number #=> 1

Returns:

  • (Integer)

    the pick number



76
# File 'lib/mlb/draft_pick.rb', line 76

attribute :pick_number, Shale::Type::Integer

#pick_roundString

Returns the round number

Examples:

pick.pick_round #=> "1"

Returns:

  • (String)

    the round



68
# File 'lib/mlb/draft_pick.rb', line 68

attribute :pick_round, Shale::Type::String

#pick_valueString

Returns the pick slot value

Examples:

pick.pick_value #=> "10570600"

Returns:

  • (String)

    the pick value



100
# File 'lib/mlb/draft_pick.rb', line 100

attribute :pick_value, Shale::Type::String

#rankInteger

Returns the prospect rank

Examples:

pick.rank #=> 1

Returns:

  • (Integer)

    the rank



92
# File 'lib/mlb/draft_pick.rb', line 92

attribute :rank, Shale::Type::Integer

#round_pick_numberInteger

Returns the pick number within the round

Examples:

pick.round_pick_number #=> 1

Returns:

  • (Integer)

    the round pick number



84
# File 'lib/mlb/draft_pick.rb', line 84

attribute :round_pick_number, Shale::Type::Integer

#schoolDraftSchool

Returns the player’s school

Examples:

pick.school #=> #<MLB::DraftSchool>

Returns:



132
# File 'lib/mlb/draft_pick.rb', line 132

attribute :school, DraftSchool

#signing_bonusString

Returns the signing bonus

Examples:

pick.signing_bonus #=> "8950000"

Returns:

  • (String)

    the signing bonus



108
# File 'lib/mlb/draft_pick.rb', line 108

attribute :signing_bonus, Shale::Type::String

#teamTeam

Returns the drafting team

Examples:

pick.team #=> #<MLB::Team>

Returns:

  • (Team)

    the team



124
# File 'lib/mlb/draft_pick.rb', line 124

attribute :team, Team