Class: NBA::DraftCombineStat

Inherits:
Shale::Mapper
  • Object
show all
Defined in:
lib/nba/draft_combine_stat.rb

Overview

Represents a draft combine stat

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bench_pressInteger

Returns bench press repetitions

Examples:

stat.bench_press #=> 15

Returns:

  • (Integer)

    bench press repetitions



199
# File 'lib/nba/draft_combine_stat.rb', line 199

attribute :bench_press, Shale::Type::Integer

#body_fat_pctFloat

Returns body fat percentage

Examples:

stat.body_fat_pct #=> 6.8

Returns:

  • (Float)

    body fat percentage



135
# File 'lib/nba/draft_combine_stat.rb', line 135

attribute :body_fat_pct, Shale::Type::Float

#first_nameString

Returns the player’s first name

Examples:

stat.first_name #=> "Victor"

Returns:

  • (String)

    the first name



31
# File 'lib/nba/draft_combine_stat.rb', line 31

attribute :first_name, Shale::Type::String

#hand_lengthFloat

Returns hand length in inches

Examples:

stat.hand_length #=> 9.75

Returns:

  • (Float)

    hand length



143
# File 'lib/nba/draft_combine_stat.rb', line 143

attribute :hand_length, Shale::Type::Float

#hand_widthFloat

Returns hand width in inches

Examples:

stat.hand_width #=> 10.5

Returns:

  • (Float)

    hand width



151
# File 'lib/nba/draft_combine_stat.rb', line 151

attribute :hand_width, Shale::Type::Float

#height_w_shoesFloat

Returns height with shoes in inches

Examples:

stat.height_w_shoes #=> 84.5

Returns:

  • (Float)

    height with shoes



79
# File 'lib/nba/draft_combine_stat.rb', line 79

attribute :height_w_shoes, Shale::Type::Float

#height_w_shoes_ft_inString

Returns height with shoes in feet and inches

Examples:

stat.height_w_shoes_ft_in #=> "7-0.5"

Returns:

  • (String)

    height with shoes



87
# File 'lib/nba/draft_combine_stat.rb', line 87

attribute :height_w_shoes_ft_in, Shale::Type::String

#height_wo_shoesFloat

Returns height without shoes in inches

Examples:

stat.height_wo_shoes #=> 83.5

Returns:

  • (Float)

    height without shoes



63
# File 'lib/nba/draft_combine_stat.rb', line 63

attribute :height_wo_shoes, Shale::Type::Float

#height_wo_shoes_ft_inString

Returns height without shoes in feet and inches

Examples:

stat.height_wo_shoes_ft_in #=> "6-11.5"

Returns:

  • (String)

    height without shoes



71
# File 'lib/nba/draft_combine_stat.rb', line 71

attribute :height_wo_shoes_ft_in, Shale::Type::String

#lane_agility_timeFloat

Returns lane agility time in seconds

Examples:

stat.lane_agility_time #=> 10.75

Returns:

  • (Float)

    lane agility time



175
# File 'lib/nba/draft_combine_stat.rb', line 175

attribute :lane_agility_time, Shale::Type::Float

#last_nameString

Returns the player’s last name

Examples:

stat.last_name #=> "Wembanyama"

Returns:

  • (String)

    the last name



39
# File 'lib/nba/draft_combine_stat.rb', line 39

attribute :last_name, Shale::Type::String

#max_vertical_leapFloat

Returns maximum vertical leap in inches

Examples:

stat.max_vertical_leap #=> 40.5

Returns:

  • (Float)

    maximum vertical leap



167
# File 'lib/nba/draft_combine_stat.rb', line 167

attribute :max_vertical_leap, Shale::Type::Float

#modified_lane_agility_timeFloat

Returns modified lane agility time in seconds

Examples:

stat.modified_lane_agility_time #=> 10.5

Returns:

  • (Float)

    modified lane agility time



183
# File 'lib/nba/draft_combine_stat.rb', line 183

attribute :modified_lane_agility_time, Shale::Type::Float

#player_idInteger

Returns the player ID

Examples:

stat.player_id #=> 1630162

Returns:

  • (Integer)

    the player ID



23
# File 'lib/nba/draft_combine_stat.rb', line 23

attribute :player_id, Shale::Type::Integer

#player_nameString

Returns the player name

Examples:

stat.player_name #=> "Victor Wembanyama"

Returns:

  • (String)

    the player name



47
# File 'lib/nba/draft_combine_stat.rb', line 47

attribute :player_name, Shale::Type::String

#positionString

Returns the player’s position

Examples:

stat.position #=> "C"

Returns:

  • (String)

    the position



55
# File 'lib/nba/draft_combine_stat.rb', line 55

attribute :position, Shale::Type::String

#seasonString

Returns the season

Examples:

stat.season #=> "2023-24"

Returns:

  • (String)

    the season



15
# File 'lib/nba/draft_combine_stat.rb', line 15

attribute :season, Shale::Type::String

#standing_reachFloat

Returns standing reach in inches

Examples:

stat.standing_reach #=> 112.0

Returns:

  • (Float)

    standing reach



119
# File 'lib/nba/draft_combine_stat.rb', line 119

attribute :standing_reach, Shale::Type::Float

#standing_reach_ft_inString

Returns standing reach in feet and inches

Examples:

stat.standing_reach_ft_in #=> "9-4"

Returns:

  • (String)

    standing reach



127
# File 'lib/nba/draft_combine_stat.rb', line 127

attribute :standing_reach_ft_in, Shale::Type::String

#standing_vertical_leapFloat

Returns standing vertical leap in inches

Examples:

stat.standing_vertical_leap #=> 32.0

Returns:

  • (Float)

    standing vertical leap



159
# File 'lib/nba/draft_combine_stat.rb', line 159

attribute :standing_vertical_leap, Shale::Type::Float

#three_quarter_sprintFloat

Returns three quarter sprint time in seconds

Examples:

stat.three_quarter_sprint #=> 3.25

Returns:

  • (Float)

    three quarter sprint time



191
# File 'lib/nba/draft_combine_stat.rb', line 191

attribute :three_quarter_sprint, Shale::Type::Float

#weightFloat

Returns weight in pounds

Examples:

stat.weight #=> 209.0

Returns:

  • (Float)

    weight



95
# File 'lib/nba/draft_combine_stat.rb', line 95

attribute :weight, Shale::Type::Float

#wingspanFloat

Returns wingspan in inches

Examples:

stat.wingspan #=> 94.0

Returns:

  • (Float)

    wingspan



103
# File 'lib/nba/draft_combine_stat.rb', line 103

attribute :wingspan, Shale::Type::Float

#wingspan_ft_inString

Returns wingspan in feet and inches

Examples:

stat.wingspan_ft_in #=> "7-10"

Returns:

  • (String)

    wingspan



111
# File 'lib/nba/draft_combine_stat.rb', line 111

attribute :wingspan_ft_in, Shale::Type::String

Instance Method Details

#playerPlayer?

Returns the player object

Examples:

stat.player #=> #<NBA::Player>

Returns:

  • (Player, nil)

    the player object



207
208
209
# File 'lib/nba/draft_combine_stat.rb', line 207

def player
  Players.find(player_id)
end