class NbaRb::Player::OpponentSplits
Public Instance Methods
by_conference()
click to toggle source
# File lib/nba_rb/player/opponent_splits.rb, line 6 def by_conference create_stats_hash(@data[1]) end
by_division()
click to toggle source
# File lib/nba_rb/player/opponent_splits.rb, line 18 def by_division create_stats_hash(@data[2]) end
by_opponent()
click to toggle source
# File lib/nba_rb/player/opponent_splits.rb, line 28 def by_opponent create_stats_hash(@data[3]) end
vs_division(division)
click to toggle source
# File lib/nba_rb/player/opponent_splits.rb, line 22 def vs_division(division) by_division.each do |hash| return hash if hash['GROUP_VALUE'].downcase.include? division.downcase end end
vs_east()
click to toggle source
# File lib/nba_rb/player/opponent_splits.rb, line 10 def vs_east by_conference[0] end
vs_team(team)
click to toggle source
# File lib/nba_rb/player/opponent_splits.rb, line 32 def vs_team(team) by_opponent.each do |hash| return hash if hash['GROUP_VALUE'].downcase.include? team.downcase end end
vs_west()
click to toggle source
# File lib/nba_rb/player/opponent_splits.rb, line 14 def vs_west by_conference[1] end