Class: NbaRb::Team::Stats

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

Instance Attribute Summary collapse

Attributes inherited from Dashboard

#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

Methods included from StatsRequest

#stats_request

Methods included from StatsHash

#create_stats_hash

Constructor Details

#initialize(*args) ⇒ Stats

Returns a new instance of Stats.



8
9
10
# File 'lib/nba_rb/team/stats.rb', line 8

def initialize(*args)
  super(*args)
end

Instance Attribute Details

#dataObject

Returns the value of attribute data.



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

def data
  @data
end

Instance Method Details

#overallObject



12
13
14
# File 'lib/nba_rb/team/stats.rb', line 12

def overall
  create_stats_hash(@data[0])
end