Class: NbaRb::Player::GeneralSplits

Inherits:
PlayerDashboard
  • Object
show all
Defined in:
lib/nba_rb/player/general_splits.rb,
lib/nba_rb/player/player_general_splits.rb

Instance Method Summary collapse

Instance Method Details

#as_benchObject



90
91
92
# File 'lib/nba_rb/player/general_splits.rb', line 90

def as_bench
  starting_position[1]
end

#as_starterObject



86
87
88
# File 'lib/nba_rb/player/general_splits.rb', line 86

def as_starter
  starting_position[0]
end

#awayObject



14
15
16
# File 'lib/nba_rb/player/general_splits.rb', line 14

def away
  location[1]
end

#by_monthObject



30
31
32
# File 'lib/nba_rb/player/general_splits.rb', line 30

def by_month
  create_stats_hash(@data[3])
end

#days_restObject



94
95
96
# File 'lib/nba_rb/player/general_splits.rb', line 94

def days_rest
  create_stats_hash(@data[6])
end

#four_rest_daysObject



114
115
116
# File 'lib/nba_rb/player/general_splits.rb', line 114

def four_rest_days
  days_rest[4]
end

#homeObject



10
11
12
# File 'lib/nba_rb/player/general_splits.rb', line 10

def home
  location[0]
end

#in_aprilObject



58
59
60
# File 'lib/nba_rb/player/general_splits.rb', line 58

def in_april
  by_month[6]
end

#in_decemberObject



42
43
44
# File 'lib/nba_rb/player/general_splits.rb', line 42

def in_december
  by_month[2]
end

#in_februaryObject



50
51
52
# File 'lib/nba_rb/player/general_splits.rb', line 50

def in_february
  by_month[4]
end

#in_januaryObject



46
47
48
# File 'lib/nba_rb/player/general_splits.rb', line 46

def in_january
  by_month[3]
end

#in_juneObject



66
67
68
# File 'lib/nba_rb/player/general_splits.rb', line 66

def in_june
  by_month[8]
end

#in_lossesObject



26
27
28
# File 'lib/nba_rb/player/general_splits.rb', line 26

def in_losses
  win_losses[1]
end

#in_marchObject



54
55
56
# File 'lib/nba_rb/player/general_splits.rb', line 54

def in_march
  by_month[5]
end

#in_mayObject



62
63
64
# File 'lib/nba_rb/player/general_splits.rb', line 62

def in_may
  by_month[7]
end

#in_novemberObject



38
39
40
# File 'lib/nba_rb/player/general_splits.rb', line 38

def in_november
  by_month[1]
end

#in_octoberObject



34
35
36
# File 'lib/nba_rb/player/general_splits.rb', line 34

def in_october
  by_month[0]
end

#in_winsObject



22
23
24
# File 'lib/nba_rb/player/general_splits.rb', line 22

def in_wins
  win_losses[0]
end

#locationObject



6
7
8
# File 'lib/nba_rb/player/general_splits.rb', line 6

def location
  create_stats_hash(@data[1])
end

#one_rest_dayObject



102
103
104
# File 'lib/nba_rb/player/general_splits.rb', line 102

def one_rest_day
  days_rest[1]
end

#post_all_starObject



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_starObject



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_starObject



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_daysObject



118
119
120
# File 'lib/nba_rb/player/general_splits.rb', line 118

def six_plus_rest_days
  days_rest[5]
end

#starting_positionObject



82
83
84
# File 'lib/nba_rb/player/general_splits.rb', line 82

def starting_position
  create_stats_hash(@data[5])
end

#three_rest_daysObject



110
111
112
# File 'lib/nba_rb/player/general_splits.rb', line 110

def three_rest_days
  days_rest[3]
end

#two_rest_daysObject



106
107
108
# File 'lib/nba_rb/player/general_splits.rb', line 106

def two_rest_days
  days_rest[2]
end

#win_lossesObject



18
19
20
# File 'lib/nba_rb/player/general_splits.rb', line 18

def win_losses
  create_stats_hash(@data[2])
end

#zero_rest_daysObject



98
99
100
# File 'lib/nba_rb/player/general_splits.rb', line 98

def zero_rest_days
  days_rest[0]
end