Class: NbaRb::Team::GeneralSplits

Inherits:
Dashboard show all
Defined in:
lib/nba_rb/team/general_splits.rb

Instance Attribute Summary

Attributes inherited from Dashboard

#data, #date_from, #date_to, #game_segment, #last_n_games, #league_id, #location, #measure_type, #month, #opponent_team_id, #outcome, #pace_adjust, #per_mode, #period, #plus_minus, #po_round, #rank, #season, #season_segment, #season_type, #shot_clock_range, #team_id, #vs_conference, #vs_division

Instance Method Summary collapse

Methods inherited from Dashboard

#endpoint, #initialize, #overall

Methods included from StatsRequest

#stats_request

Methods included from Initializable

#initialize

Methods included from StatsHash

#create_stats_hash

Constructor Details

This class inherits a constructor from NbaRb::Team::Dashboard

Instance Method Details

#by_locationObject



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

def by_location
  create_stats_hash(@data[1])
end

#days_restObject



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

def days_rest
  create_stats_hash(@data[5])
end

#monthlyObject



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

def monthly
  create_stats_hash(@data[3])
end

#pre_post_all_starObject



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

def pre_post_all_star
  create_stats_hash(@data[4])
end

#wins_lossesObject



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

def wins_losses
  create_stats_hash(@data[2])
end