class NbaRb::Player::Summary
Attributes
data[RW]
player_id[RW]
Public Class Methods
new(*args)
click to toggle source
Calls superclass method
Initializable::new
# File lib/nba_rb/player/player_summary.rb, line 11 def initialize(*args) super(*args) @player_id ||= player_id res = stats_request('commonplayerinfo', 'PlayerID' => player_id) @data = res['resultSets'] end
Public Instance Methods
headline_stats()
click to toggle source
# File lib/nba_rb/player/player_summary.rb, line 24 def headline_stats create_stats_hash(@data[1]) end
info()
click to toggle source
# File lib/nba_rb/player/player_summary.rb, line 20 def info create_stats_hash(@data[0]) end