nba gem 0.0.2 has been released!
- home: GitHub - larrylv/nba: NBA.rb is a Ruby library for retrieving NBA League games, schedules, teams and players.
- rubygems: nba | RubyGems.org | your community gem host
nba is a Ruby library for retrieving NBA League players, teams and
divisions.
This gem is inspired by @sferik’s mlb
gem, take a look if you are a baseball
fan.
Installation
gem install nba
Usage Examples
$ irb
>> require 'nba'
>> NBA::Team.all.first.name # => "Atlanta Hawks"
>> NBA::Team.all.first.division # => "Southeast
Division"
>> NBA::Team.all.first.founded # => 1946
>> NBA::Team.all.first.players.first.name # => “Al Horford”
>> NBA::Team.all.first.players.first.number # => 15