Class: NbaRb::Team::LastNGamesSplits
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
#stats_request
#initialize
Methods included from StatsHash
#create_stats_hash
Instance Method Details
#game_number ⇒ Object
22
23
24
|
# File 'lib/nba_rb/team/last_n_games_splits.rb', line 22
def game_number
create_stats_hash(@data[5])
end
|
#last_10 ⇒ Object
10
11
12
|
# File 'lib/nba_rb/team/last_n_games_splits.rb', line 10
def last_10
create_stats_hash(@data[2])
end
|
#last_15 ⇒ Object
14
15
16
|
# File 'lib/nba_rb/team/last_n_games_splits.rb', line 14
def last_15
create_stats_hash(@data[3])
end
|
#last_20 ⇒ Object
18
19
20
|
# File 'lib/nba_rb/team/last_n_games_splits.rb', line 18
def last_20
create_stats_hash(@data[4])
end
|
#last_5 ⇒ Object
6
7
8
|
# File 'lib/nba_rb/team/last_n_games_splits.rb', line 6
def last_5
create_stats_hash(@data[1])
end
|