SteamStats
Get Steam player's info and games stats.
Installation
Add this line to your application's Gemfile:
gem 'steam_stats'
And then execute:
$ bundle
Or install it yourself as:
$ gem install steam_stats
Usage
- Find user by ID or your customized address nick, check it by going to your profile page at steamcommunity.com
user = SteamStats::User.new '76561198041851025'
# or
user = SteamStats::User.new 'pewdie'
- Get array of played games
games = user.games #=> [{ name: 'Team Fortress 2', played_hours: 93 }, { name: 'Sniper Elite V2', played_hours: 2.4 }, ...]
- And now you have your stats, have fun with it!
hours_in_tf2 = games[0].played_hours
Contributing
- Fork it ( https://github.com/neonowy/steam_stats/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Code, code, code 💻 💻
- Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request