class Probasketball

Public Class Methods

connect(api_key, options = {}) click to toggle source
# File lib/probasketball.rb, line 2
def self.connect(api_key, options = {})
  self.new(api_key, options)
end
new(api_key, options) click to toggle source
# File lib/probasketball.rb, line 6
def initialize(api_key, options)
  @api_key = api_key
  @options = options
  @api = Probasketball::Api.new(@api_key, @options)
end

Public Instance Methods

advanced_stats() click to toggle source
# File lib/probasketball.rb, line 28
def advanced_stats
  @advanced_stats ||= Probasketball::Collections::AdvancedStats.new(api)
end
boxscores() click to toggle source
# File lib/probasketball.rb, line 36
def boxscores
  @boxscores ||= Probasketball::Collections::Boxscores.new(api)
end
four_factors() click to toggle source
# File lib/probasketball.rb, line 40
def four_factors
  @four_factors ||= Probasketball::Collections::FourFactors.new(api)
end
games() click to toggle source
# File lib/probasketball.rb, line 20
def games
  @games ||= Probasketball::Collections::Games.new(api)
end
misc_stats() click to toggle source
# File lib/probasketball.rb, line 32
def misc_stats
  @misc_stats ||= Probasketball::Collections::MiscStats.new(api)
end
players() click to toggle source
# File lib/probasketball.rb, line 16
def players
  @players ||= Probasketball::Collections::Players.new(api)
end
shots() click to toggle source
# File lib/probasketball.rb, line 24
def shots
  @shots ||= Probasketball::Collections::Shots.new(api)
end
sportsvu_data() click to toggle source
# File lib/probasketball.rb, line 44
def sportsvu_data
  @sportsvu_data ||= Probasketball::Collections::SportsvuData.new(api)
end
teams() click to toggle source
# File lib/probasketball.rb, line 12
def teams
  @teams ||= Probasketball::Collections::Teams.new(api)
end
usages() click to toggle source
# File lib/probasketball.rb, line 48
def usages
  @usages ||= Probasketball::Collections::Usages.new(api)
end

Private Instance Methods

api() click to toggle source
# File lib/probasketball.rb, line 54
def api
  @api
end