Class: NBA::DraftCombineDrillResult

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

Overview

Represents a draft combine drill result

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bench_pressInteger

Returns the number of bench press repetitions

Examples:

result.bench_press #=> 12

Returns:

  • (Integer)

    bench press repetitions



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

attribute :bench_press, Shale::Type::Integer

#first_nameString

Returns the player’s first name

Examples:

result.first_name #=> "Victor"

Returns:

  • (String)

    the first name



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

attribute :first_name, Shale::Type::String

#lane_agility_timeFloat

Returns the lane agility drill time in seconds

Examples:

result.lane_agility_time #=> 10.5

Returns:

  • (Float)

    lane agility time in seconds



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

attribute :lane_agility_time, Shale::Type::Float

#last_nameString

Returns the player’s last name

Examples:

result.last_name #=> "Wembanyama"

Returns:

  • (String)

    the last name



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

attribute :last_name, Shale::Type::String

#max_vertical_leapFloat

Returns the maximum vertical leap measurement in inches

Examples:

result.max_vertical_leap #=> 37.0

Returns:

  • (Float)

    maximum vertical leap in inches



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

attribute :max_vertical_leap, Shale::Type::Float

#modified_lane_agility_timeFloat

Returns the modified lane agility drill time in seconds

Examples:

result.modified_lane_agility_time #=> 10.2

Returns:

  • (Float)

    modified lane agility time in seconds



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

attribute :modified_lane_agility_time, Shale::Type::Float

#player_idInteger

Returns the player ID

Examples:

result.player_id #=> 1630162

Returns:

  • (Integer)

    the player ID



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

attribute :player_id, Shale::Type::Integer

#player_nameString

Returns the player name

Examples:

result.player_name #=> "Victor Wembanyama"

Returns:

  • (String)

    the player name



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

attribute :player_name, Shale::Type::String

#positionString

Returns the player’s position

Examples:

result.position #=> "C"

Returns:

  • (String)

    the position



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

attribute :position, Shale::Type::String

#standing_vertical_leapFloat

Returns the standing vertical leap measurement in inches

Examples:

result.standing_vertical_leap #=> 30.5

Returns:

  • (Float)

    standing vertical leap in inches



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

attribute :standing_vertical_leap, Shale::Type::Float

#temp_player_idInteger

Returns the temporary player ID

Examples:

result.temp_player_id #=> 1630162

Returns:

  • (Integer)

    the temporary player ID



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

attribute :temp_player_id, Shale::Type::Integer

#three_quarter_sprintFloat

Returns the three-quarter court sprint time in seconds

Examples:

result.three_quarter_sprint #=> 3.2

Returns:

  • (Float)

    three-quarter sprint time in seconds



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

attribute :three_quarter_sprint, Shale::Type::Float

Instance Method Details

#playerPlayer?

Returns the player object

Examples:

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

Returns:

  • (Player, nil)

    the player object



111
112
113
# File 'lib/nba/draft_combine_drill_result.rb', line 111

def player
  Players.find(player_id)
end