Module: NBA::DraftCombineNonStationaryShooting::ResultAttributes Private
- Defined in:
- lib/nba/draft_combine_non_stationary_shooting.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Extracts result attributes from data
Class Method Summary collapse
-
.extract(data) ⇒ Hash
private
Extracts all result attributes from data.
-
.off_dribble_college(data) ⇒ Hash
private
Extracts off-dribble college range shot attributes from data.
-
.off_dribble_fifteen(data) ⇒ Hash
private
Extracts off-dribble fifteen-foot shot attributes from data.
-
.on_move_college(data) ⇒ Hash
private
Extracts on-move college range shot attributes from data.
-
.on_move_fifteen(data) ⇒ Hash
private
Extracts on-move fifteen-foot shot attributes from data.
-
.player(data) ⇒ Hash
private
Extracts player attributes from data.
Class Method Details
.extract(data) ⇒ Hash
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Extracts all result attributes from data
84 85 86 87 |
# File 'lib/nba/draft_combine_non_stationary_shooting.rb', line 84 def self.extract(data) player(data).merge(off_dribble_fifteen(data)).merge(on_move_fifteen(data)) .merge(off_dribble_college(data)).merge(on_move_college(data)) end |
.off_dribble_college(data) ⇒ Hash
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Extracts off-dribble college range shot attributes from data
119 120 121 |
# File 'lib/nba/draft_combine_non_stationary_shooting.rb', line 119 def self.off_dribble_college(data) OffDribbleCollege.left(data).merge(OffDribbleCollege.top(data)).merge(OffDribbleCollege.right(data)) end |
.off_dribble_fifteen(data) ⇒ Hash
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Extracts off-dribble fifteen-foot shot attributes from data
103 104 105 |
# File 'lib/nba/draft_combine_non_stationary_shooting.rb', line 103 def self.off_dribble_fifteen(data) OffDribbleFifteen.left(data).merge(OffDribbleFifteen.top(data)).merge(OffDribbleFifteen.right(data)) end |
.on_move_college(data) ⇒ Hash
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Extracts on-move college range shot attributes from data
127 128 129 |
# File 'lib/nba/draft_combine_non_stationary_shooting.rb', line 127 def self.on_move_college(data) OnMoveCollege.left(data).merge(OnMoveCollege.top(data)).merge(OnMoveCollege.right(data)) end |
.on_move_fifteen(data) ⇒ Hash
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Extracts on-move fifteen-foot shot attributes from data
111 112 113 |
# File 'lib/nba/draft_combine_non_stationary_shooting.rb', line 111 def self.on_move_fifteen(data) OnMoveFifteen.left(data).merge(OnMoveFifteen.top(data)).merge(OnMoveFifteen.right(data)) end |
.player(data) ⇒ Hash
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Extracts player attributes from data
93 94 95 96 97 |
# File 'lib/nba/draft_combine_non_stationary_shooting.rb', line 93 def self.player(data) {temp_player_id: data["TEMP_PLAYER_ID"], player_id: data["PLAYER_ID"], player_name: data["PLAYER_NAME"], first_name: data["FIRST_NAME"], last_name: data["LAST_NAME"], position: data["POSITION"]} end |