class NbaRb::Player::GeneralSplits

Public Instance Methods

as_bench() click to toggle source
# File lib/nba_rb/player/general_splits.rb, line 90
def as_bench
  starting_position[1]
end
as_starter() click to toggle source
# File lib/nba_rb/player/general_splits.rb, line 86
def as_starter
  starting_position[0]
end
away() click to toggle source
# File lib/nba_rb/player/general_splits.rb, line 14
def away
  location[1]
end
by_month() click to toggle source
# File lib/nba_rb/player/general_splits.rb, line 30
def by_month
  create_stats_hash(@data[3])
end
days_rest() click to toggle source
# File lib/nba_rb/player/general_splits.rb, line 94
def days_rest
  create_stats_hash(@data[6])
end
four_rest_days() click to toggle source
# File lib/nba_rb/player/general_splits.rb, line 114
def four_rest_days
  days_rest[4]
end
home() click to toggle source
# File lib/nba_rb/player/general_splits.rb, line 10
def home
  location[0]
end
in_april() click to toggle source
# File lib/nba_rb/player/general_splits.rb, line 58
def in_april
  by_month[6]
end
in_december() click to toggle source
# File lib/nba_rb/player/general_splits.rb, line 42
def in_december
  by_month[2]
end
in_february() click to toggle source
# File lib/nba_rb/player/general_splits.rb, line 50
def in_february
  by_month[4]
end
in_january() click to toggle source
# File lib/nba_rb/player/general_splits.rb, line 46
def in_january
  by_month[3]
end
in_june() click to toggle source
# File lib/nba_rb/player/general_splits.rb, line 66
def in_june
  by_month[8]
end
in_losses() click to toggle source
# File lib/nba_rb/player/general_splits.rb, line 26
def in_losses
  win_losses[1]
end
in_march() click to toggle source
# File lib/nba_rb/player/general_splits.rb, line 54
def in_march
  by_month[5]
end
in_may() click to toggle source
# File lib/nba_rb/player/general_splits.rb, line 62
def in_may
  by_month[7]
end
in_november() click to toggle source
# File lib/nba_rb/player/general_splits.rb, line 38
def in_november
  by_month[1]
end
in_october() click to toggle source
# File lib/nba_rb/player/general_splits.rb, line 34
def in_october
  by_month[0]
end
in_wins() click to toggle source
# File lib/nba_rb/player/general_splits.rb, line 22
def in_wins
  win_losses[0]
end
location() click to toggle source
# File lib/nba_rb/player/general_splits.rb, line 6
def location
  create_stats_hash(@data[1])
end
one_rest_day() click to toggle source
# File lib/nba_rb/player/general_splits.rb, line 102
def one_rest_day
  days_rest[1]
end
post_all_star() click to toggle source
# File lib/nba_rb/player/general_splits.rb, line 78
def post_all_star
  pre_post_all_star[1]
end
pre_all_star() click to toggle source
# File lib/nba_rb/player/general_splits.rb, line 74
def pre_all_star
  pre_post_all_star[0]
end
pre_post_all_star() click to toggle source
# 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() click to toggle source
# File lib/nba_rb/player/general_splits.rb, line 118
def six_plus_rest_days
  days_rest[5]
end
starting_position() click to toggle source
# File lib/nba_rb/player/general_splits.rb, line 82
def starting_position
  create_stats_hash(@data[5])
end
three_rest_days() click to toggle source
# File lib/nba_rb/player/general_splits.rb, line 110
def three_rest_days
  days_rest[3]
end
two_rest_days() click to toggle source
# File lib/nba_rb/player/general_splits.rb, line 106
def two_rest_days
  days_rest[2]
end
win_losses() click to toggle source
# File lib/nba_rb/player/general_splits.rb, line 18
def win_losses
  create_stats_hash(@data[2])
end
zero_rest_days() click to toggle source
# File lib/nba_rb/player/general_splits.rb, line 98
def zero_rest_days
  days_rest[0]
end