Class: NBA::DraftCombineSpotShootingResult

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

Overview

Represents a draft combine spot shooting result

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#college_break_left_attemptInteger

Returns college range break left shot attempts

Examples:

result.college_break_left_attempt #=> 5

Returns:

  • (Integer)

    shot attempts



207
# File 'lib/nba/draft_combine_spot_shooting_result.rb', line 207

attribute :college_break_left_attempt, Shale::Type::Integer

#college_break_left_madeInteger

Returns college range break left shots made

Examples:

result.college_break_left_made #=> 4

Returns:

  • (Integer)

    shots made



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

attribute :college_break_left_made, Shale::Type::Integer

#college_break_left_pctFloat

Returns college range break left shooting percentage

Examples:

result.college_break_left_pct #=> 0.800

Returns:

  • (Float)

    shooting percentage



215
# File 'lib/nba/draft_combine_spot_shooting_result.rb', line 215

attribute :college_break_left_pct, Shale::Type::Float

#college_break_right_attemptInteger

Returns college range break right shot attempts

Examples:

result.college_break_right_attempt #=> 5

Returns:

  • (Integer)

    shot attempts



255
# File 'lib/nba/draft_combine_spot_shooting_result.rb', line 255

attribute :college_break_right_attempt, Shale::Type::Integer

#college_break_right_madeInteger

Returns college range break right shots made

Examples:

result.college_break_right_made #=> 3

Returns:

  • (Integer)

    shots made



247
# File 'lib/nba/draft_combine_spot_shooting_result.rb', line 247

attribute :college_break_right_made, Shale::Type::Integer

#college_break_right_pctFloat

Returns college range break right shooting percentage

Examples:

result.college_break_right_pct #=> 0.600

Returns:

  • (Float)

    shooting percentage



263
# File 'lib/nba/draft_combine_spot_shooting_result.rb', line 263

attribute :college_break_right_pct, Shale::Type::Float

#college_corner_left_attemptInteger

Returns college range corner left shot attempts

Examples:

result.college_corner_left_attempt #=> 5

Returns:

  • (Integer)

    shot attempts



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

attribute :college_corner_left_attempt, Shale::Type::Integer

#college_corner_left_madeInteger

Returns college range corner left shots made

Examples:

result.college_corner_left_made #=> 3

Returns:

  • (Integer)

    shots made



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

attribute :college_corner_left_made, Shale::Type::Integer

#college_corner_left_pctFloat

Returns college range corner left shooting percentage

Examples:

result.college_corner_left_pct #=> 0.600

Returns:

  • (Float)

    shooting percentage



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

attribute :college_corner_left_pct, Shale::Type::Float

#college_corner_right_attemptInteger

Returns college range corner right shot attempts

Examples:

result.college_corner_right_attempt #=> 5

Returns:

  • (Integer)

    shot attempts



279
# File 'lib/nba/draft_combine_spot_shooting_result.rb', line 279

attribute :college_corner_right_attempt, Shale::Type::Integer

#college_corner_right_madeInteger

Returns college range corner right shots made

Examples:

result.college_corner_right_made #=> 4

Returns:

  • (Integer)

    shots made



271
# File 'lib/nba/draft_combine_spot_shooting_result.rb', line 271

attribute :college_corner_right_made, Shale::Type::Integer

#college_corner_right_pctFloat

Returns college range corner right shooting percentage

Examples:

result.college_corner_right_pct #=> 0.800

Returns:

  • (Float)

    shooting percentage



287
# File 'lib/nba/draft_combine_spot_shooting_result.rb', line 287

attribute :college_corner_right_pct, Shale::Type::Float

#college_top_key_attemptInteger

Returns college range top key shot attempts

Examples:

result.college_top_key_attempt #=> 5

Returns:

  • (Integer)

    shot attempts



231
# File 'lib/nba/draft_combine_spot_shooting_result.rb', line 231

attribute :college_top_key_attempt, Shale::Type::Integer

#college_top_key_madeInteger

Returns college range top key shots made

Examples:

result.college_top_key_made #=> 5

Returns:

  • (Integer)

    shots made



223
# File 'lib/nba/draft_combine_spot_shooting_result.rb', line 223

attribute :college_top_key_made, Shale::Type::Integer

#college_top_key_pctFloat

Returns college range top key shooting percentage

Examples:

result.college_top_key_pct #=> 1.000

Returns:

  • (Float)

    shooting percentage



239
# File 'lib/nba/draft_combine_spot_shooting_result.rb', line 239

attribute :college_top_key_pct, Shale::Type::Float

#fifteen_break_left_attemptInteger

Returns 15-foot break left shot attempts

Examples:

result.fifteen_break_left_attempt #=> 5

Returns:

  • (Integer)

    shot attempts



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

attribute :fifteen_break_left_attempt, Shale::Type::Integer

#fifteen_break_left_madeInteger

Returns 15-foot break left shots made

Examples:

result.fifteen_break_left_made #=> 4

Returns:

  • (Integer)

    shots made



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

attribute :fifteen_break_left_made, Shale::Type::Integer

#fifteen_break_left_pctFloat

Returns 15-foot break left shooting percentage

Examples:

result.fifteen_break_left_pct #=> 0.800

Returns:

  • (Float)

    shooting percentage



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

attribute :fifteen_break_left_pct, Shale::Type::Float

#fifteen_break_right_attemptInteger

Returns 15-foot break right shot attempts

Examples:

result.fifteen_break_right_attempt #=> 5

Returns:

  • (Integer)

    shot attempts



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

attribute :fifteen_break_right_attempt, Shale::Type::Integer

#fifteen_break_right_madeInteger

Returns 15-foot break right shots made

Examples:

result.fifteen_break_right_made #=> 3

Returns:

  • (Integer)

    shots made



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

attribute :fifteen_break_right_made, Shale::Type::Integer

#fifteen_break_right_pctFloat

Returns 15-foot break right shooting percentage

Examples:

result.fifteen_break_right_pct #=> 0.600

Returns:

  • (Float)

    shooting percentage



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

attribute :fifteen_break_right_pct, Shale::Type::Float

#fifteen_corner_left_attemptInteger

Returns 15-foot corner left shot attempts

Examples:

result.fifteen_corner_left_attempt #=> 5

Returns:

  • (Integer)

    shot attempts



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

attribute :fifteen_corner_left_attempt, Shale::Type::Integer

#fifteen_corner_left_madeInteger

Returns 15-foot corner left shots made

Examples:

result.fifteen_corner_left_made #=> 3

Returns:

  • (Integer)

    shots made



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

attribute :fifteen_corner_left_made, Shale::Type::Integer

#fifteen_corner_left_pctFloat

Returns 15-foot corner left shooting percentage

Examples:

result.fifteen_corner_left_pct #=> 0.600

Returns:

  • (Float)

    shooting percentage



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

attribute :fifteen_corner_left_pct, Shale::Type::Float

#fifteen_corner_right_attemptInteger

Returns 15-foot corner right shot attempts

Examples:

result.fifteen_corner_right_attempt #=> 5

Returns:

  • (Integer)

    shot attempts



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

attribute :fifteen_corner_right_attempt, Shale::Type::Integer

#fifteen_corner_right_madeInteger

Returns 15-foot corner right shots made

Examples:

result.fifteen_corner_right_made #=> 4

Returns:

  • (Integer)

    shots made



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

attribute :fifteen_corner_right_made, Shale::Type::Integer

#fifteen_corner_right_pctFloat

Returns 15-foot corner right shooting percentage

Examples:

result.fifteen_corner_right_pct #=> 0.800

Returns:

  • (Float)

    shooting percentage



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

attribute :fifteen_corner_right_pct, Shale::Type::Float

#fifteen_top_key_attemptInteger

Returns 15-foot top key shot attempts

Examples:

result.fifteen_top_key_attempt #=> 5

Returns:

  • (Integer)

    shot attempts



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

attribute :fifteen_top_key_attempt, Shale::Type::Integer

#fifteen_top_key_madeInteger

Returns 15-foot top key shots made

Examples:

result.fifteen_top_key_made #=> 5

Returns:

  • (Integer)

    shots made



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

attribute :fifteen_top_key_made, Shale::Type::Integer

#fifteen_top_key_pctFloat

Returns 15-foot top key shooting percentage

Examples:

result.fifteen_top_key_pct #=> 1.000

Returns:

  • (Float)

    shooting percentage



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

attribute :fifteen_top_key_pct, Shale::Type::Float

#first_nameString

Returns the player’s first name

Examples:

result.first_name #=> "Victor"

Returns:

  • (String)

    the first name



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

attribute :first_name, Shale::Type::String

#last_nameString

Returns the player’s last name

Examples:

result.last_name #=> "Wembanyama"

Returns:

  • (String)

    the last name



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

attribute :last_name, Shale::Type::String

#nba_break_left_attemptInteger

Returns NBA range break left shot attempts

Examples:

result.nba_break_left_attempt #=> 5

Returns:

  • (Integer)

    shot attempts



327
# File 'lib/nba/draft_combine_spot_shooting_result.rb', line 327

attribute :nba_break_left_attempt, Shale::Type::Integer

#nba_break_left_madeInteger

Returns NBA range break left shots made

Examples:

result.nba_break_left_made #=> 4

Returns:

  • (Integer)

    shots made



319
# File 'lib/nba/draft_combine_spot_shooting_result.rb', line 319

attribute :nba_break_left_made, Shale::Type::Integer

#nba_break_left_pctFloat

Returns NBA range break left shooting percentage

Examples:

result.nba_break_left_pct #=> 0.800

Returns:

  • (Float)

    shooting percentage



335
# File 'lib/nba/draft_combine_spot_shooting_result.rb', line 335

attribute :nba_break_left_pct, Shale::Type::Float

#nba_break_right_attemptInteger

Returns NBA range break right shot attempts

Examples:

result.nba_break_right_attempt #=> 5

Returns:

  • (Integer)

    shot attempts



375
# File 'lib/nba/draft_combine_spot_shooting_result.rb', line 375

attribute :nba_break_right_attempt, Shale::Type::Integer

#nba_break_right_madeInteger

Returns NBA range break right shots made

Examples:

result.nba_break_right_made #=> 3

Returns:

  • (Integer)

    shots made



367
# File 'lib/nba/draft_combine_spot_shooting_result.rb', line 367

attribute :nba_break_right_made, Shale::Type::Integer

#nba_break_right_pctFloat

Returns NBA range break right shooting percentage

Examples:

result.nba_break_right_pct #=> 0.600

Returns:

  • (Float)

    shooting percentage



383
# File 'lib/nba/draft_combine_spot_shooting_result.rb', line 383

attribute :nba_break_right_pct, Shale::Type::Float

#nba_corner_left_attemptInteger

Returns NBA range corner left shot attempts

Examples:

result.nba_corner_left_attempt #=> 5

Returns:

  • (Integer)

    shot attempts



303
# File 'lib/nba/draft_combine_spot_shooting_result.rb', line 303

attribute :nba_corner_left_attempt, Shale::Type::Integer

#nba_corner_left_madeInteger

Returns NBA range corner left shots made

Examples:

result.nba_corner_left_made #=> 3

Returns:

  • (Integer)

    shots made



295
# File 'lib/nba/draft_combine_spot_shooting_result.rb', line 295

attribute :nba_corner_left_made, Shale::Type::Integer

#nba_corner_left_pctFloat

Returns NBA range corner left shooting percentage

Examples:

result.nba_corner_left_pct #=> 0.600

Returns:

  • (Float)

    shooting percentage



311
# File 'lib/nba/draft_combine_spot_shooting_result.rb', line 311

attribute :nba_corner_left_pct, Shale::Type::Float

#nba_corner_right_attemptInteger

Returns NBA range corner right shot attempts

Examples:

result.nba_corner_right_attempt #=> 5

Returns:

  • (Integer)

    shot attempts



399
# File 'lib/nba/draft_combine_spot_shooting_result.rb', line 399

attribute :nba_corner_right_attempt, Shale::Type::Integer

#nba_corner_right_madeInteger

Returns NBA range corner right shots made

Examples:

result.nba_corner_right_made #=> 4

Returns:

  • (Integer)

    shots made



391
# File 'lib/nba/draft_combine_spot_shooting_result.rb', line 391

attribute :nba_corner_right_made, Shale::Type::Integer

#nba_corner_right_pctFloat

Returns NBA range corner right shooting percentage

Examples:

result.nba_corner_right_pct #=> 0.800

Returns:

  • (Float)

    shooting percentage



407
# File 'lib/nba/draft_combine_spot_shooting_result.rb', line 407

attribute :nba_corner_right_pct, Shale::Type::Float

#nba_top_key_attemptInteger

Returns NBA range top key shot attempts

Examples:

result.nba_top_key_attempt #=> 5

Returns:

  • (Integer)

    shot attempts



351
# File 'lib/nba/draft_combine_spot_shooting_result.rb', line 351

attribute :nba_top_key_attempt, Shale::Type::Integer

#nba_top_key_madeInteger

Returns NBA range top key shots made

Examples:

result.nba_top_key_made #=> 5

Returns:

  • (Integer)

    shots made



343
# File 'lib/nba/draft_combine_spot_shooting_result.rb', line 343

attribute :nba_top_key_made, Shale::Type::Integer

#nba_top_key_pctFloat

Returns NBA range top key shooting percentage

Examples:

result.nba_top_key_pct #=> 1.000

Returns:

  • (Float)

    shooting percentage



359
# File 'lib/nba/draft_combine_spot_shooting_result.rb', line 359

attribute :nba_top_key_pct, Shale::Type::Float

#player_idInteger

Returns the player ID

Examples:

result.player_id #=> 1630162

Returns:

  • (Integer)

    the player ID



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

attribute :player_id, Shale::Type::Integer

#player_nameString

Returns the player name

Examples:

result.player_name #=> "Victor Wembanyama"

Returns:

  • (String)

    the player name



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

attribute :player_name, Shale::Type::String

#positionString

Returns the player’s position

Examples:

result.position #=> "C"

Returns:

  • (String)

    the position



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

attribute :position, Shale::Type::String

Instance Method Details

#playerPlayer?

Returns the player object

Examples:

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

Returns:

  • (Player, nil)

    the player object



415
416
417
# File 'lib/nba/draft_combine_spot_shooting_result.rb', line 415

def player
  Players.find(player_id)
end