Class: NBA::DraftPick
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- NBA::DraftPick
- Defined in:
- lib/nba/draft_pick.rb
Overview
Represents a draft pick
Instance Attribute Summary collapse
-
#college ⇒ String
Returns the player’s college.
-
#country ⇒ String
Returns the player’s country.
-
#draft_type ⇒ String
Returns the draft type.
-
#height ⇒ String
Returns the player’s height.
-
#overall_pick ⇒ Integer
Returns the overall pick number.
-
#player_id ⇒ Integer
Returns the player ID.
-
#player_name ⇒ String
Returns the player name.
-
#position ⇒ String
Returns the player’s position.
-
#round_number ⇒ Integer
Returns the round number.
-
#round_pick ⇒ Integer
Returns the pick number within the round.
-
#season ⇒ Integer
Returns the draft season/year.
-
#team_abbreviation ⇒ String
Returns the team abbreviation.
-
#team_city ⇒ String
Returns the team city.
-
#team_id ⇒ Integer
Returns the team ID that drafted the player.
-
#team_name ⇒ String
Returns the team name.
-
#weight ⇒ Integer
Returns the player’s weight.
Instance Method Summary collapse
-
#player ⇒ Player?
Returns the player object.
-
#team ⇒ Team?
Returns the team object.
Instance Attribute Details
#college ⇒ String
Returns the player’s college
124 |
# File 'lib/nba/draft_pick.rb', line 124 attribute :college, Shale::Type::String |
#country ⇒ String
Returns the player’s country
132 |
# File 'lib/nba/draft_pick.rb', line 132 attribute :country, Shale::Type::String |
#draft_type ⇒ String
Returns the draft type
52 |
# File 'lib/nba/draft_pick.rb', line 52 attribute :draft_type, Shale::Type::String |
#height ⇒ String
Returns the player’s height
108 |
# File 'lib/nba/draft_pick.rb', line 108 attribute :height, Shale::Type::String |
#overall_pick ⇒ Integer
Returns the overall pick number
44 |
# File 'lib/nba/draft_pick.rb', line 44 attribute :overall_pick, Shale::Type::Integer |
#player_id ⇒ Integer
Returns the player ID
12 |
# File 'lib/nba/draft_pick.rb', line 12 attribute :player_id, Shale::Type::Integer |
#player_name ⇒ String
Returns the player name
92 |
# File 'lib/nba/draft_pick.rb', line 92 attribute :player_name, Shale::Type::String |
#position ⇒ String
Returns the player’s position
100 |
# File 'lib/nba/draft_pick.rb', line 100 attribute :position, Shale::Type::String |
#round_number ⇒ Integer
Returns the round number
28 |
# File 'lib/nba/draft_pick.rb', line 28 attribute :round_number, Shale::Type::Integer |
#round_pick ⇒ Integer
Returns the pick number within the round
36 |
# File 'lib/nba/draft_pick.rb', line 36 attribute :round_pick, Shale::Type::Integer |
#season ⇒ Integer
Returns the draft season/year
20 |
# File 'lib/nba/draft_pick.rb', line 20 attribute :season, Shale::Type::Integer |
#team_abbreviation ⇒ String
Returns the team abbreviation
84 |
# File 'lib/nba/draft_pick.rb', line 84 attribute :team_abbreviation, Shale::Type::String |
#team_city ⇒ String
Returns the team city
68 |
# File 'lib/nba/draft_pick.rb', line 68 attribute :team_city, Shale::Type::String |
#team_id ⇒ Integer
Returns the team ID that drafted the player
60 |
# File 'lib/nba/draft_pick.rb', line 60 attribute :team_id, Shale::Type::Integer |
#team_name ⇒ String
Returns the team name
76 |
# File 'lib/nba/draft_pick.rb', line 76 attribute :team_name, Shale::Type::String |
#weight ⇒ Integer
Returns the player’s weight
116 |
# File 'lib/nba/draft_pick.rb', line 116 attribute :weight, Shale::Type::Integer |