New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

big_3

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

big_3

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Big3

Big3 adds stats from all games played in the Big3 basketball league. This includes:

  • Team stats
  • Player stats
  • Season averages
  • Scores
  • Rosters

Installation

$ gem install big_3

Usage

big_3 = Big3::League.new
all_games = big_3.team_stats["games"]
# => Returns a hash containing team stats and scores from all games

Filtering games by team name

big_3.team_name = "Ball Hogs"

Viewing individual player stats

big_3.player_name = "Moochie Norris"
big_3.player_stats["season"] # season averages
# => {"@min"=>"5.67", "@fga"=>"1.67", "@fgm"=>"0.33", "@fga3"=>"1.33", "@fgm3"=>"0.33", "@fga4"=>"0.0", "@fgm4"=>"0.0", "@fta2"=>"0.67", "@ftm2"=>"0.0", "@fta3"=>"0.0", "@ftm3"=>"0.0", "@fta4"=>"0.0", "@ftm4"=>"0.0", "@fta1"=>"0.0", "@ftm1"=>"0.0", "@fta"=>"0.67", "@ftm"=>"0.0", "@treb"=>"1.33", "@oreb"=>"0.33", "@dreb"=>"1.0", "@ast"=>"0.67", "@stl"=>"0.67", "@blk"=>"0.0", "@pf"=>"1.0", "@tp"=>"1.0", "@eff"=>"1.67", "@net"=>"23.87", "@plusminus"=>"-3.33", "@to"=>"0.67"}

Optional parameters

Big3::League.new(team_name: "Trilogy", player_name: "Mike Bibby")

Finding teams and players

big_3.rosters
# => {"3 Headed Monsters"=>["Rashard Lewis", "Kwame Brown", "Eddie Basden", "Hakim Warrick", "Mahmoud Abdul-Rauf", "Jason Williams", "Kareem Rush"], .etc}

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/aseli1/big_3.

License

The gem is available as open source under the terms of the MIT License.

FAQs

Package last updated on 20 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc