Class: NbaRb::Player::GeneralSplits
- Inherits:
-
PlayerDashboard
- Object
- PlayerDashboard
- NbaRb::Player::GeneralSplits
- Defined in:
- lib/nba_rb/player/general_splits.rb,
lib/nba_rb/player/player_general_splits.rb
Instance Method Summary collapse
- #as_bench ⇒ Object
- #as_starter ⇒ Object
- #away ⇒ Object
- #by_month ⇒ Object
- #days_rest ⇒ Object
- #four_rest_days ⇒ Object
- #home ⇒ Object
- #in_april ⇒ Object
- #in_december ⇒ Object
- #in_february ⇒ Object
- #in_january ⇒ Object
- #in_june ⇒ Object
- #in_losses ⇒ Object
- #in_march ⇒ Object
- #in_may ⇒ Object
- #in_november ⇒ Object
- #in_october ⇒ Object
- #in_wins ⇒ Object
- #location ⇒ Object
- #one_rest_day ⇒ Object
- #post_all_star ⇒ Object
- #pre_all_star ⇒ Object
- #pre_post_all_star ⇒ Object
- #six_plus_rest_days ⇒ Object
- #starting_position ⇒ Object
- #three_rest_days ⇒ Object
- #two_rest_days ⇒ Object
- #win_losses ⇒ Object
- #zero_rest_days ⇒ Object
Instance Method Details
#as_bench ⇒ Object
90 91 92 |
# File 'lib/nba_rb/player/general_splits.rb', line 90 def as_bench starting_position[1] end |
#as_starter ⇒ Object
86 87 88 |
# File 'lib/nba_rb/player/general_splits.rb', line 86 def as_starter starting_position[0] end |
#away ⇒ Object
14 15 16 |
# File 'lib/nba_rb/player/general_splits.rb', line 14 def away location[1] end |
#by_month ⇒ Object
30 31 32 |
# File 'lib/nba_rb/player/general_splits.rb', line 30 def by_month create_stats_hash(@data[3]) end |
#days_rest ⇒ Object
94 95 96 |
# File 'lib/nba_rb/player/general_splits.rb', line 94 def days_rest create_stats_hash(@data[6]) end |
#four_rest_days ⇒ Object
114 115 116 |
# File 'lib/nba_rb/player/general_splits.rb', line 114 def four_rest_days days_rest[4] end |
#home ⇒ Object
10 11 12 |
# File 'lib/nba_rb/player/general_splits.rb', line 10 def home location[0] end |
#in_april ⇒ Object
58 59 60 |
# File 'lib/nba_rb/player/general_splits.rb', line 58 def in_april by_month[6] end |
#in_december ⇒ Object
42 43 44 |
# File 'lib/nba_rb/player/general_splits.rb', line 42 def in_december by_month[2] end |
#in_february ⇒ Object
50 51 52 |
# File 'lib/nba_rb/player/general_splits.rb', line 50 def in_february by_month[4] end |
#in_january ⇒ Object
46 47 48 |
# File 'lib/nba_rb/player/general_splits.rb', line 46 def in_january by_month[3] end |
#in_june ⇒ Object
66 67 68 |
# File 'lib/nba_rb/player/general_splits.rb', line 66 def in_june by_month[8] end |
#in_losses ⇒ Object
26 27 28 |
# File 'lib/nba_rb/player/general_splits.rb', line 26 def in_losses win_losses[1] end |
#in_march ⇒ Object
54 55 56 |
# File 'lib/nba_rb/player/general_splits.rb', line 54 def in_march by_month[5] end |
#in_may ⇒ Object
62 63 64 |
# File 'lib/nba_rb/player/general_splits.rb', line 62 def in_may by_month[7] end |
#in_november ⇒ Object
38 39 40 |
# File 'lib/nba_rb/player/general_splits.rb', line 38 def in_november by_month[1] end |
#in_october ⇒ Object
34 35 36 |
# File 'lib/nba_rb/player/general_splits.rb', line 34 def in_october by_month[0] end |
#in_wins ⇒ Object
22 23 24 |
# File 'lib/nba_rb/player/general_splits.rb', line 22 def in_wins win_losses[0] end |
#location ⇒ Object
6 7 8 |
# File 'lib/nba_rb/player/general_splits.rb', line 6 def location create_stats_hash(@data[1]) end |
#one_rest_day ⇒ Object
102 103 104 |
# File 'lib/nba_rb/player/general_splits.rb', line 102 def one_rest_day days_rest[1] end |
#post_all_star ⇒ Object
78 79 80 |
# File 'lib/nba_rb/player/general_splits.rb', line 78 def post_all_star pre_post_all_star[1] end |
#pre_all_star ⇒ Object
74 75 76 |
# File 'lib/nba_rb/player/general_splits.rb', line 74 def pre_all_star pre_post_all_star[0] end |
#pre_post_all_star ⇒ Object
70 71 72 |
# File 'lib/nba_rb/player/general_splits.rb', line 70 def pre_post_all_star create_stats_hash(@data[4]) end |
#six_plus_rest_days ⇒ Object
118 119 120 |
# File 'lib/nba_rb/player/general_splits.rb', line 118 def six_plus_rest_days days_rest[5] end |
#starting_position ⇒ Object
82 83 84 |
# File 'lib/nba_rb/player/general_splits.rb', line 82 def starting_position create_stats_hash(@data[5]) end |
#three_rest_days ⇒ Object
110 111 112 |
# File 'lib/nba_rb/player/general_splits.rb', line 110 def three_rest_days days_rest[3] end |
#two_rest_days ⇒ Object
106 107 108 |
# File 'lib/nba_rb/player/general_splits.rb', line 106 def two_rest_days days_rest[2] end |
#win_losses ⇒ Object
18 19 20 |
# File 'lib/nba_rb/player/general_splits.rb', line 18 def win_losses create_stats_hash(@data[2]) end |
#zero_rest_days ⇒ Object
98 99 100 |
# File 'lib/nba_rb/player/general_splits.rb', line 98 def zero_rest_days days_rest[0] end |